I am trying to print sequence of numbers in one line dynamically
p=['3.333','2.22','1.1']
for d in p:
time.sleep(0.1)
sys.stdout.write('\r'+d)
sys.stdout.flush()
But the output is not as expected.
At last we get:
1.123
Actually I want it to be 1.1
, So how do I remove the existing Characters?