advice on this little script

Grant Edwards grante at visi.com
Thu Mar 9 15:54:38 CET 2006


On 2006-03-09, John Salerno <johnjsal at NOSPAMgmail.com> wrote:
> Grant Edwards wrote:
>> On 2006-03-09, John Salerno <johnjsal at NOSPAMgmail.com> wrote:
>> 
>>> from time import sleep
>>>
>>> minutes = input('Enter the number of minutes to wait: ')
>>>
>>> for x in range(minutes):
>>> 	sleep(1.0)
>>> 	minutes -= 1
>>> 	print minutes, 'minutes remaining.'
>> 
>> for x in range(minutes,0,-1):
>>     sleep(60.0)
>>     print minutes, 'minutes remaining'

       print x, 'minutes remaining'

Doh!       

-- 
Grant Edwards                   grante             Yow!  Now KEN is having
                                  at               a MENTAL CRISIS beacuse
                               visi.com            his "R.V." PAYMENTS are
                                                   OVER-DUE!!



More information about the Python-list mailing list