How to replace printed statements in Python 2.7, for example:
for i in range(100):
print i,"% Completed"
#Result Must Be:
>>> 1 % Completed
The 1 must be replaced by 2 and so on. But not in different line or append on same line.
I tried searching about it, found solution such as
from __future__ import print_function
print("i: "+str(i),end="\r")
But they result in appended print statements. Is there any correction in my print_function
or is there a different solution?