Home / Programming MCQs / Python MCQs / Question

S

Shivam • 8.86K Points
Tutor III

Q. What is the output of the following program?

Code:
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.