I am struggling to replace the print lines in windows CMD
for i in range(10):
print ("Range: ", i)
print ("Loading... ")
sys.stdout.write("\033[F"*2)
sys.stdout.write("\033[K")
The issue is visible here:
I want to replace the first line Range: 1
so how can I do it in python 3.x