mysteriously nonfunctioning script - very simple

Sean McIlroy sean_mcilroy at yahoo.com
Sat Mar 26 01:13:09 EST 2005


Can anybody help me make sense of the fact that the following script
doesn't work? It's so simple I can't imagine what I'm missing. Any
help will be much appreciated.

Peace,
STM


## ALARM CLOCK:
from time import sleep,time,localtime

wakeuptime = input('hours: '), input('minutes: ')
onehourlater = (wakeuptime[0]+1, wakeuptime[1])
while not wakeuptime < localtime(time())[3:5] < onehourlater:
    sleep(3)    
print 'PLAY A SOUND FILE'



More information about the Python-list mailing list