There are several solutions for printing on the same line and in the first of them, as shown below.
In python 2,
print "\r Running... xxx",
And in Python 3,
print("\r Running... xxx", end="")
I cannot find one print solution to cover python 2 and 3 at the same time. Should I use sys.stdout.write?
source
share