Vidyalelo
Python · Q54

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 54

Q54

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

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

Answer: Option A

Solution

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