10 | for loop; list; numbers
What it is is:
simpleloop2.py
# This program also demonstrates a simple for
# loop that uses a list of numbers.
print('I will display the odd numbers 1 through 9.')
for num in [1, 3, 5, 7, 9]:
print(num)
What it is is:
simpleloop2.py
# This program also demonstrates a simple for
# loop that uses a list of numbers.
print('I will display the odd numbers 1 through 9.')
for num in [1, 3, 5, 7, 9]:
print(num)