Python Loops
Loops execute a block of code repeatedly.
for Loop
A for loop is commonly used to iterate over a sequence.
while Loop
A while loop continues while a condition remains true.
range()
The range() function is commonly used with for loops.
for i in range(5):
print(i)
break and continue
breakstops the loop.continueskips the current iteration.