πŸ“Š Python
Q. What is the output of the following program?
D = {1 : 1, 2 : '2', '1' : 1, '2' : 3}
D['1'] = 2
print(D[D[D[str(D[1])]]])
  • (A) 2
  • (B) 3
  • (C) „2β€Ÿ
  • (D) KeyError
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
88%
Success Rate