0

What does the \n do in Python 3?

I tried to look it up on the internet but couldn't find anything helpful.... Any help is much appreciated.

1st Jan 2018, 6:57 PM
Ole113
Ole113 - avatar
2 Answers
+ 9
It is a universal (not only for Python) 'end-of-line' or 'newline' character or rather its escape sequence. It tells the interpreter to start a new line when printing.
1st Jan 2018, 7:04 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
Thanks Kuba
1st Jan 2018, 8:47 PM
Ole113
Ole113 - avatar