advice on this little script

Grant Edwards grante at visi.com
Wed Mar 8 23:45:03 EST 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'
>
> Nice! Cross off another line! I feel like Hemingway.  :)

Was he the one who once apologized to his editor for a story
being so long because he was in a hurry and didn't have time to
make it shorter?

-- 
Grant Edwards                   grante             Yow!  NEWARK has been
                                  at               REZONED!! DES MOINES has
                               visi.com            been REZONED!!



More information about the Python-list mailing list