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
Answer» C. 3
1.5k
0
Do you find this helpful?
1

View all MCQs in

Python Programming

Discussion

No comments yet