import sys,time for i in range(51): sys.stdout.write(' ') sys.stdout.write('%s%%|%s' % (int(i/50*100),int(i)*'#')) sys.stdout.flush() time.sleep(0.35)