Introduction To Python - Learn Python the hard way v2.0
Title: ex33
i = 0
# creating empty list
numbers = []
# Executing loop for 6 times
while i < 6:
    print "At the top i is %d" % i
#   appending i to list
    numbers.append(i)

    i = i + 1
    print "Numbers now: ", numbers
    print "At the bottom i is %d" % i


print "The numbers: "
# priting above created list
for num in numbers:
    print num