0

Guys i dont get the \n

What does \n mean? Isn't it similar to the( " " " )triple quotes?

21st Sep 2022, 11:50 PM
YaMaMo
YaMaMo - avatar
5 Respuestas
+ 2
\n is the invisible control character that marks a new line. Without it, the text would just flow continuously in a single line, and it would be difficult to read. But visually this character does not appear in the output, it just pushes the following text to the start of the next line.
22nd Sep 2022, 4:10 AM
Tibor Santa
Tibor Santa - avatar
+ 1
If you use it on your code it will be explainable for yuo Use it among your string inside quotes of print function
22nd Sep 2022, 1:15 AM
Behzod
Behzod - avatar
22nd Sep 2022, 2:08 AM
Fathima Shazana Naleem
0
"\n" is used for printing strings in new line.
21st Sep 2022, 11:54 PM
SoloProg
SoloProg - avatar
0
Yes it is. The \n can b used to add a string to a new line and the """ can also be used to the same thing. But """ automatically adds a new line when you enter a new line which saves you time of writing \n every time to want to add a new line.
22nd Sep 2022, 10:51 AM
T0N1
T0N1 - avatar