Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) ,2,3],"check")

(A) syntax error
(B) {1:”check”,2:”check”,3:”check”}
(C) “check”
(D) {1:none,2:none,3:none}
Correct answer : Option (B) - {1:”check”,2:”check”,3:”check”}

Explanation:
 the dictionary takes values of keys from the list and initializes it to the default value (value given in the second parameter). execute in python shell to verify.

Share

Discusssion

Login to discuss.