python print overwrite same line code example
Example 1: python overwrite text that is already printed
for x in range(10):
print '{0}\r'.format(x),
print
Example 2: python overwrite print on same line
import time
for j in range(1,5):
print('waiting : '+j, end='\r')
time.sleep(1)