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
Correct Answer:
Verified
Q24: What is the output of the following
Q25: What is the output of the following
Q26: What is the output of the following
Q27: What is the output of the following
Q28: What is the output of the following
Q30: What is the output of the following
Q31: What is the output of the following
Q32: What is the output of the following
Q33: What is the output of the following
Q34: What is the type of each element
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents