advice on this little script

Benjamin Liebald liebald at uiuc.edu
Thu Mar 9 05:59:35 CET 2006


John Salerno wrote:
>> for x in range(minutes,0,-1):
>>     sleep(60.0)
>>     print minutes, 'minutes remaining'
>>
> 
> I might be doing something wrong, but this just keeps printing out '10 
> minutes remaining' each time.

should be:

for x in range(minutes,0,-1):
     sleep(60.0)
     print x, 'minutes remaining'

Ben



More information about the Python-list mailing list