for num in range(5,0,-1): time.sleep(1) sys.stdout.flush() sys.stdout.write('\rPlease Wait: '+str(num)+'s \r') sys.stdout.flush()