What is purpose of \n ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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