Creating a countdown script in Python...
anybody know how to add a countdown function to python. Like if I wanted to make a program sleep for some time then continue
Observing members:
0
Composing members:
0
Answers
import time
time.sleep(10) # sleep for ten seconds
# Say 3, 2, 1, Happy Birthday!
import time
i = 4
for j in range(1, i):
print i - j
time.sleep(1)
else:
print "Happy Birthday!"
Answer this question 