Solved

What Is the Last Line of Output of the Following

Question 33

Multiple Choice

What is the last line of output of the following code?
Pres = {1:"Washington", 16:"Lincoln", 35: "Kennedy", 40:"Reagan"}
For nth in pres:
Print("%2d:" % nth,pres[ nth ])


A) 35: Kennedy
B) 40: Reagan
C) 03: Kennedy
D) 04: Reagan

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions