import sys ,time for i in range(4): sys.stdout.write('*') sys.stdout.flush() print(i,end='') time.sleep(1)