nick34992 of Python
2/2/2017 - 7:19 AM

MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise 4: Item 3

MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise 4: Item 3

#!/usr/bin/python3

num = 10  # initialize
while num > 3:  # define loop
    num -= 1  # counter
    print('num =', num)  # after counter

'''
MITx 600.1x | Week 1 | Python Basics | 2. Core Elements of Programs | Exercise 4: Item 3

num = 9
num = 8
num = 7
num = 6
num = 5
num = 4
num = 3
'''