Python - Loop Control
Which of the following is the correct syntax to use break inside a for loop?
for i in range(5):
___
print(i)Which of the following is the correct syntax to use break inside a for loop?
for i in range(5):
___
print(i)if condition: followed by indented code.break inside the if blockif i == 3: break to stop loop when i equals 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions