Vidyalelo
Python · Q59

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 59

Q59

What will be the output of the following Python code? d = 0: 'a', 1: 'b', 2: 'c' for x in d.values(): print(d[x])

A.
0 1 2
B.
a b c
C.
0 a   1 b   2 c
D.
none of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board