Beginning Python

Adding more items to the list makes the loop go around more times:

loop.py
my_words = ["Hello", "Python", "Goodbye", "Python"]

for word in my_words:
    print(word)
$
python loop.py
Hello
Python
Goodbye
Python

A list with a mixture of data types can be printed witout issue:

loop.py
my_words = ["Hello", "Python", 404, "Goodbye", "Python", 42]

for word in my_words:
    print(word)
$
python loop.py
Hello
Python
404
Goodbye
Python
42

Looping over an empty list does not print anything:

loop.py
my_words = []

for word in my_words:
    print(word)
$
python loop.py