Print to the same line

Python

Print to console using the same line (useful for progress logging)

py

import time for i in range(0,11): print("{}/10".format(i), end="\r", flush=True) time.sleep(1)