for loops iterate over any iterable: for item in list. Use range() for number sequences and enumerate() for index and value. while loops repeat while a condition is true. break exits early, continue skips one iteration.
Loops in Python
# for loop
for i in range(5):
print(i) # 0 1 2 3 4
# Loop with index
for i, val in enumerate(["a","b","c"]):
print(i, val)
# while loop
n = 1
while n <= 5:
print(n)
n += 1
# break and continue work the same as in other languages