My code is not stopping. I'm hoping someone could explain what I'm doing wrong.
what I'm trying to do is run the program, give it a number and have it loop until that number is reached. I give the program x, x is given to counting. and it should check i to x each time.
numbers = []
x = raw_input("> ")
def counting(num):
i = 0
while i < num:
print "At the top i is %d" % i
numbers.append(i)
i = i + 1
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
counting(x)
print "The numbers: "
for num in numbers:
print num