• Home
  • What is the output of the following program? D = {1 : {'A' : {1 : A}, 2 : B}, 3 :C, 'B' : D, D: 'E'} print(D[D[D[1][2]]], end = ) print(D[D[1][A][2]])
Question 1:
What is the output of the following program?
D = {1 : {'A' : {1 : A}, 2 : B}, 3 :C, 'B' : D, D: 'E'}
print(D[D[D[1][2]]], end = )
print(D[D[1][A][2]])
A. D C
B. E B
C. D B
D. E KeyError

These questions are from this test. Would you like to take a practice test?

Python Quiz 1 | Englishfreetest.com