πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
123
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate