5cn vs 5cr python

Solutions on MaxInterview for 5cn vs 5cr python by the best coders in the world

showing results for - " 5cn vs 5cr python"
Adèle
17 Jan 2018
1\n is the classic line_feed on Unix/Linux (his ascii is 10 in decimal and 0a in hexadecimal)
2\r\n is the classic line_feed on Windows
3\r is the classic line_feed on olds version of MacOs (pre-MacOsX version) (his ascii is 13 in decimal an 0d in hexadecimal)
Ava
06 Jun 2019
1\n   vs   \r
2
3QUESTION:     What is the difference between \n and \r?
4
5\n is the newline character, while \r is the carriage return.
6
7(They differ in what uses them.)
8
9-------  Windows uses   \r\n   to signify the enter key was pressed.
10-------  Linux and Unix use   \n.