loop.py
= ["Hello", "Python", "Goodbye", "Python"]
my_words
for word in my_words:
print(word)
loop.py
= ["Hello", "Python", "Goodbye", "Python"]
my_words
for word in my_words:
print(word)
python loop.py
Hello
Python
Goodbye
Python
loop.py
= ["Hello", "Python", 404, "Goodbye", "Python", 42]
my_words
for word in my_words:
print(word)
Hello
Python
404
Goodbye
Python
42
loop.py
= []
my_words
for word in my_words:
print(word)