import sys j = "a" for i in range(160): j = "%sa" % j foo = "%s\r" % j sys.stdout.write(foo) print