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
This is something that I've learned at one of my first python lessons, we played with ["/","-","|","\","|"] but the principle is the same:
import time for i in reversed(range(0, 10)): time.sleep(1) print "%s\r" %i,