Single Choice Not Set

QWhat will be the output after the following statements?
x = {'day':'Sunday', 'week':10}
print(tuple(x.items()))

ID: #4028 Python Dictionary MCQ 262 views
Question Info
#4028Q ID
Not SetDifficulty
Python Dictionary MCQTopic

Choose the Best Option

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

  • A (('week', 10), ('day', 'Sunday'))
  • B ('day', 'Sunday') ('week', 10)
  • C ['day', 'week']
  • D (day, week)
Correct Answer

Explanation

(('week', 10), ('day', 'Sunday'))

Share This Question

Challenge a friend or share with your study group.