Home / Programming MCQs / Python MCQs / Question

M

Mr. Dubey • 51.27K Points
Coach

Q. What is the output of the following program?
dictionary1 = {'GFG' : 1,
'Google' : 2,
'GFG' : 3
}
print(dictionary1['GFG']);

(A) Compilation error due to duplicate keys
(B) Runtime time error due to duplicate keys
(C) 3
(D) 1

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.