Answers for "what is \r and \n in python"

0

rn python

print "n",
print "r",
print "rn",
Posted by: Guest on November-05-2020
0

n vs r python

n   vs   r

QUESTION:     What is the difference between n and r?

n is the newline character, while r is the carriage return.

(They differ in what uses them.)

-------  Windows uses   rn   to signify the enter key was pressed.
-------  Linux and Unix use   n.
Posted by: Guest on September-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language