Support Forums
Simple Timer - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32)
+---- Thread: Simple Timer (/showthread.php?tid=2250)



Simple Timer - nevets04 - 10-27-2009

import time
import os
os.system("clear")
x = int(raw_input("How much time do you want to put on the clock (In seconds)?: "))
x = x + 1
while x > 0:
os.system("clear")
x = x - 1
print x
time.sleep(1)
os.system("clear")
print "Times Up!"