Feb-11-2017, 11:13 AM
num=raw_input("enter range") def pract(num): i=0 numbers=[] 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 for x in numbers: print"numbers now:",x pract(num)The code is returning an infinte list i dont know whats the problem?help