+ 1

What is the use of \n?

7th Aug 2019, 1:34 PM
Keshetti Sreekanth
3 Réponses
+ 5
Goes to the next line.
7th Aug 2019, 2:18 PM
Sonic
Sonic - avatar
+ 1
To add a line-break in the output. Example: print("Blabla") -> Blabla print("Bla\nbla") -> Bla bla
7th Aug 2019, 1:47 PM
Paul Grasser
Paul Grasser - avatar
+ 1
line break in a string example: “some \ntext” result: some text
7th Aug 2019, 1:49 PM
Eze