Python - Loop Control
Find the error in this code snippet:
for i in range(4):
if i == 2:
continue
print(i)
breakfor i in range(4):
if i == 2:
continue
print(i)
breaki == 2, continue skips print and break for that iteration. For other values, print runs then break stops loop immediately.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions