a = raw_input ("enter a number")
i = 0
numbers = []
while i < a:
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
print "The numbers: "
for num in numbers:
print num
so I'm following lpthw and was just messing with the code, why is it when I use raw_input and enter a number like 6 this loop turns into a infinite loop? shouldn't i = i + 1 be there to stop this from happening?