So, the problem is that i am printing character using python's print()
functions.
print("hello world \b\bs", end='', flush=True)
But it doesn't print hello worls
rather it prints hello world
.
I think "\b"
makes the cursor go back one character and delete that one.
Above we have a space between 'd'
of the 'world'
and '\b\bs'
that's why i used two backspace's.
Delete last printed character python above ans doesn't work!