python print into same line code example
Example: python 2 print in same line
from __future__ import print_function
print("\r Running... xxx", end="") # works across both major versions
from __future__ import print_function
print("\r Running... xxx", end="") # works across both major versions