Vidyalelo
Python · Q40

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 40

Q40

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

A.
-2 -1
B.
0
C.
error
Answer
D.
none of the mentioned

Answer: Option C

Solution

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