# while
i = 0while i < 5:
print(i)
i += 1# forfor i in range(5):
print(i)
for i in range(1, 5):
print(i)
fruits = ['apple', 'banana', 'orange']
for fruit in fruits:
print(fruit)
# loop-else# code inside the else block will be executed only if the loop completes all# iterations without any break statement being encountered.
i = 1while i <= 5:
print(f"loop: {i}")
i += 1else:
print("Loop completed without any breaks")
# break
i = 0whileTrue:
i += 1if i > 5:
break# continuefor i in range(5):
if i % 2 == 0:
continue
print(i)