python print over same line code example
Example 1: python overwrite print on same line
import time
for j in range(1,5):
print('waiting : '+j, end='\r')
time.sleep(1)
Example 2: python print same line
# Python 2 only
print "Seven"
# Backwards compatible (also fastest)
import sys
sys.stdout.write("Nice film")
# Python 3 only
print("Mob Psycho 100", end="")