+ 1
\n
What does \n mean.
5 Answers
+ 4
It means line break, '\n' is just used to insert a line break to make our code clear and arranged.
+ 2
line ending styles:
\r is a carrige return [CR]
\n is a line feed [LF]
\r\n is a Windows style [CRLF]
\r is an old pre-OS X Mac's style [CR] (modern Mac's using POSIX style)
\n is a POSIX style [LF]
+
but you have:
\t => tabulator
\b => backspace
\\ => inserting backslash (escape character)
+ 1
Thanks
+ 1
They are special characters, \n is used to give a line break for example
print("Hello\nJay")
the result would be
Hello
Jay
There are also other special characters such as \t \r among others
you can use \t to tabulate I mean give a space of 4
So
print("Hello\tJay")
the result
Hi Jay
I hope I have helped you, any problem I will be willing to help you
0
\n
Simply means new line