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 = [0, 1, 2, 3]
i = -2
for i not in a:
print(i)
i += 1A. -2 -1
B. 0
C. error
D. none of the mentioned
Answer: Option C

Join The Discussion