What is purpose of \n ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What is purpose of \n ?

Yes...its an escape sequence but I cannot get that what is the purpose.

24th Mar 2019, 6:07 AM
Rohan Agarwal
Rohan Agarwal - avatar
3 Antworten
+ 8
Gaming machine It represents a new line. If you want to enter a new line between your output, you use this escape character.
24th Mar 2019, 6:20 AM
Letsintegreat
Letsintegreat - avatar
+ 2
Gaming machine Note: If you use it as a raw string, it won't work.
24th Mar 2019, 6:19 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 2
Gaming machine Note: If you use it as a raw string, it won't work.
24th Mar 2019, 6:19 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar