Re: [Tutor] clock.py

2005-05-23 Thread Nick Lunt
Feziwe Mpondo wrote: >clock.py,problem is to get the last two digits to be random.her's what i >tried >from time import time,ctime >prev_time = "" >while(1): >the_time = ctime() >if (prev_time != the_time): > print "The time is :",ctime(time()) >prev_time = the_time >guess = 0 >nu

[Tutor] clock.py

2005-05-23 Thread Feziwe Mpondo
clock.py,problem is to get the last two digits to be random.her's what i tried from time import time,ctime prev_time = "" while(1): the_time = ctime() if (prev_time != the_time): print "The time is :",ctime(time()) prev_time = the_time guess = 0 number = 1-60 while guess != number