Following python script
import time
numbers = [11111, 2222, 333, 44, 5]
for number in numbers:
print("{}".format(number), end='\r', flush=True)
time.sleep(1)
print()
outputs 54321
, which is supposed to be 5
, how can I erase previous line on screen without any residues? Thanks!