Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time, sys
- def countdown(seconds):
- for sec in xrange(0,Seconds):
- sys.stdout.flush()
- sys.stdout.write('\r'+str(sec))
- time.sleep(1)
- sys.stdout.write('\n')
- return
- s = 60
- countdown(s)
- print("Done")
Advertisement
Add Comment
Please, Sign In to add comment