Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Timer
#1
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!"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)