Python Loops

Python Loops

Loops are used to repeat actions multiple times.

for i in range(3):
    print("Hello", i)

count = 0
while count < 3:
    print("Count:", count)
    count += 1