Re: [Tutor] Problem with while loop

2007-09-07 Thread matte
Perfect... Thanks very much for your help... On 9/7/07, Michael Connors <[EMAIL PROTECTED]> wrote: > > I think it will work if you cast your input to an int: > howmany = int(raw_input( "How many: " )) Now I just need to figure out how to only get 4 digit pin numbers :) -m _

[Tutor] Problem with while loop

2007-09-07 Thread matte
Hi guys Please excuse me but I've been out of Python for a while since my laptop was stolen... I'm battling with a very basic while loop -- 8< -- #!/usr/bin/python from random import randint counter = 0 howmany = raw_input( "How many: " ) while counter < h