Can a print overwrite a previous print ?
ast
ast at invalid
Fri May 8 10:25:52 EDT 2020
Hello
Suppose we want that:
print("abcdef"); print("ghi")
produces:
ghidef
The 2nd print overwrites the first one.
Is it feasible ?
It should since the progress bar tdqh seems to do that
try:
from tkdm import tkdm
for i in tqdm(range(100_000_000)):
pass
It produces a progress bar like this:
100%|███████████████████████████████████████████████████████████████|
100000000/100000000 [00:56<00:00, 1781611.52it/s]
More information about the Python-list
mailing list