MCQ Practice Single Best Answer Topic: Python Dictionary MCQ

Q What will be the output after the following statements?
x = {'day':'Sunday', 'week':10}
for i, j in x.items():
    print(i, j, end=' ')

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

Choose Your Answer

Click an option to check whether your answer is correct.

  • A ('day', 'Sunday') ('week', 10)
  • B {'day':'Sunday', 'week':10}
  • C 'day':'Sunday', 'week':10
  • D day Sunday week 10
Correct Answer: D

Explanation

day Sunday week 10

Share This Question

Share this MCQ with your friends or study group.