0

Use of \r in python

Please explain use of \r in python code

20th Apr 2022, 6:45 AM
NASAKA PAVAN SATYANARAYANA
2 Respuestas
+ 4
It is called "carriage return". Find out about it here: https://www.pythonpool.com/carriage-return-JUMP_LINK__&&__python__&&__JUMP_LINK/
20th Apr 2022, 7:00 AM
Lisa
Lisa - avatar
+ 1
Try out this game to see it in action. Whenever you fight someone, battle stats are printed to the screen using the carriage return. It makes it appear as though the text just updates on it's own on a single line. https://code.sololearn.com/cjGIfr8I4Fu2/?ref=app
20th Apr 2022, 8:28 AM
Slick
Slick - avatar