MCQ Single Best Answer Not Set

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

ID: #4036 Python Dictionary MCQ 287 views
Question Info
#4036Q ID
Not SetDifficulty
Python Dictionary MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

Explanation

10

Share This Question

Challenge a friend or share with your study group.