Python - Loop Control
What will be the output of this code?
for i in range(5):
if i == 2:
break
print(i)for i in range(5):
if i == 2:
break
print(i)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions