return \n code example
Example 1: difference \n \r
\n is the classic line_feed on Unix/Linux (his ascii is 10 in decimal and 0a in hexadecimal)
\r\n is the classic line_feed on Windows
\r is the classic line_feed on olds version of MacOs (pre-MacOsX version) (his ascii is 13 in decimal an 0d in hexadecimal)
Example 2: js \n
//Example:
var i = 'Hello \n World'
console.log(i)
//Would return:
Hello
World
Example 3: readlines replace \n
with open(filename) as f:
mylist = f.read().splitlines()