import time as t
from Tkinter import *
hour = input("What is the current hour? ")
min = input("And how many minutes into the hour are me? ")
while 1:
if min < 10:
print "%s:0%s" % (hour,min)
else:
print "%s:%s" % (hour,min)
t.sleep(60)
min = min + 1
if min == 60:
min == 0
hour = hour + 1
if hour == 13:
hour = 1
No comments:
Post a Comment