#while.py

def count():
    n = input("total:  ")
    i = 1                 # initialize ONCE before the loop
    while i <= n:         # what is the condition to make you continue looping?
        print i           # do the thing you are repeating
        i = i + 1         # set up for the next time through the loop
    print "done"          # finish up ONCE after the loop, if necessary

def count2():
    n = input("total:  ")
    i = 0                 # initialize ONCE before the loop
    while i < n:          # what is the condition to make you continue looping?
        i = i + 1         # set up for THIS time through the loop
        print i           # do the thing you are repeating
    print "done"          # finish up ONCE after the loop, if necessary



count2()
