MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise 5c
#!/usr/bin/python3
for variable in range(20):
if variable % 4 == 0:
print(variable)
if variable % 16 == 0:
print('Foo!')
'''
MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise 5c
0
Foo!
4
8
12
16
Foo!
'''