Vidyalelo
Python · Q37

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 37

Q37

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

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

Answer: Option B

Solution

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