Categories
Mastering Development

Python3 When printing CR and some text, the text is not erased

I am trying to write code for progressing. When I print CR, it just move the cursor to the beginning, but the text remains. like below: print(‘xxxxx’, end=’\r’) print(‘yy’) # I want to print only ‘yy’ >> yyxxx Can I delete text, not just move the cursor?