Python - Loop Control
Identify the syntax error in this code snippet:
for i in range(4):
if i == 2
break
print(i)for i in range(4):
if i == 2
break
print(i)if i == 2 is missing the colon.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions