I am using time.sleep(10) in my program. Can display the countdown in the shell when I run my program?
>>>run_my_program() tasks done, now sleeping
Here's one I did:
import time a = input("How long is the countdown?") while a != 0: print a time.sleep(1) a = a-1
At the end if you and an else you can put an alarm or whatever.