Hi, I'm new to python trying to figure how to make this work.

c=0;d=raw_input("input number limit: ")

while 1:
    c = c + 1
    if c == d: break
    print c,


My idea is to able to input a number to limit the print out of this loop.
But this will not work. Where is the error?

Ivan
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to