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
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