Loop Control Exercise
Question 1 of 4
What will this code output?
for i in range(5):
if i == 3:
break
print(i)0 1 2 3
0 1 2 3 4
0 1 2
1 2 3
What will this code output?
for i in range(5):
if i == 3:
break
print(i)0 1 2 3
0 1 2 3 4
0 1 2
1 2 3