+ 2

What exactly is /r?

I'm very new to Python and just got to the special characters lesson and was curious about /r. /r is a carriage return but what does that mean?

27th Apr 2022, 1:13 PM
Dala
Dala - avatar
2 Respostas
+ 3
It is equivalent to pressing the Home key in a word processor. The cursor is positioned at the far left. It's like pressing the left arrow key until the cursor is at the fare left (without going to the next line)
27th Apr 2022, 1:18 PM
Paul K Sadler
Paul K Sadler - avatar
+ 2
This explains the where carriage return comes from: https://www.quora.com/What-is-a-carriage-on-a-typewriter
27th Apr 2022, 1:36 PM
Paul
Paul - avatar