Python For Loops

# Iterating over a sequence of numbers
for i in range(5):  # range(5) generates numbers from 0 to 4
    print(i)
fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
    print(fruit)
word = "Python"
for char in word:
    print(char)
person = {"name": "Alice", "age": 30, "city": "New York"}
for key, value in person.items():
    print(key, ":", value)