Adding more items to the list makes the loop go around more times:
my_words = ["Hello", "Python", "Goodbye", "Python"]
for word in my_words:
print(word)
python loop.py
A list with a mixture of data types can be printed witout issue:
my_words = ["Hello", "Python", 404, "Goodbye", "Python", 42]
for word in my_words:
print(word)
python loop.py
Looping over an empty list does not print anything:
my_words = []
for word in my_words:
print(word)
python loop.py