Vidyalelo
Python · Q57

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 57

Q57

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

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

Answer: Option B

Solution

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