adplus-dvertising
frame-decoration

Question

What is the output of the following?
d = {0: 'a', 1: 'b', 2: 'c'}
for x, y in d.items():
    print(x, y)

a.

0 1 2

b.

a b c

c.

0 a 1 b 2 c

d.

none of the mentioned

Posted under Python

Answer: (c).0 a 1 b 2 c

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs