MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = {'x':1, 'y':2, 'z':3}
for i, j in x.items():
    print(i, j, end=' ')

ID: #3529 Python for Loop MCQ 382 views
Question Info
#3529Q ID
Not SetDifficulty
Python for Loop MCQTopic

Choose the Best Option

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

  • A x y z
  • B x 1 y 2 z 3
  • C x:1 y:2 z:3
  • D x, 1, y, 2, z, 3
Correct Answer: Option B

Explanation

x 1 y 2 z 3

Share This Question

Challenge a friend or share with your study group.