adplus-dvertising
frame-decoration

Question

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

a.

-2 -1

b.

0

c.

error

d.

none of the mentioned

Posted under Python

Answer: (c).error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs