Vidyalelo
Python · Q31

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 31

Q31

What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[0] in a: print(a[0])

A.
0 1 2 3
Answer
B.
0 1 2 2
C.
3 3 3 3
D.
error

Answer: Option A

Solution

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