MCQ Practice Single Best Answer Topic: Python Dictionary MCQ

Q What will be the output after the following statements?
x = {'day':'Sunday', 'week':10}
print(x.get('week', 5))

Question ID
#4036
Subchapter
Python Dictionary MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A 10
  • B 5
  • C Sunday
  • D day
Correct Answer: A

Explanation

10

Share This Question

Share this MCQ with your friends or study group.