While Loops
i = 1
while i < 6:
print(i)
i += 1The break Statement
i = 1
while i < 6:
print(i)
if i == 3:
break
i += 1The continue Statement
i = 0
while i < 6:
i += 1
if i == 3:
continue
print(i)The else Statement
Last updated