My youngest son loves clocks so together we made a simple program that prints out the time, waits a minute, then prints out the next time again each minute.
[python]
import time
print("What time is it?")
string = input()
dot = string.find(":")
hour = string[:dot]
minute = string[dot + 1:]
while True:
time.sleep(60)
if int(minute) < 59:
minute = int(minute) + 1
elif int(minute) == 59:
minute = 0
if int(hour) < 11:
hour = int(hour) + 1
else:
hour = 1
if len(str(hour)) == 1:
hour = "0" + str(hour)
if len(str(minute)) == 1:
minute = "0" + str(minute)
print(str(hour) + ":" + str(minute))
[/python]