+ 1

I cant understand the meaning of\n

11th Jan 2017, 3:53 PM
seetha
seetha - avatar
13 Respuestas
+ 5
It's like \new just taking out "ew" and \n just creates a new line example: print("hello\nworld") the output would be: Hello World instead of: Hello world
11th Jan 2017, 7:00 PM
hackingmaster
hackingmaster  - avatar
+ 3
this is the character for 'end of line' on linux. on mac, \r is used instead. On windows lines end with both characters \r\n.
11th Jan 2017, 3:59 PM
ifl
ifl - avatar
+ 3
\n is a element from C and it means to leave a line that is when used it pushes the proceeding output to the next line. example: print("Hello I am \ncoding in python") the output would be: Hello I am coding in python
13th Jan 2017, 4:27 PM
Sanchit Pandey
Sanchit Pandey - avatar
+ 2
\n means a new line on computer language. print 'long long line \n new line' Show: long long line new line
11th Jan 2017, 3:57 PM
nextco
nextco - avatar
+ 2
\n means new line or next line
12th Jan 2017, 1:23 AM
Rohith Rahul
Rohith Rahul - avatar
+ 2
With the above comments I now understand \n too
22nd Jan 2017, 11:05 AM
Jide Alo
Jide Alo - avatar
+ 1
\n is an escape character. escape characters are used to escape some parts of string while printing on standard output. other escape characters are \t, \a
11th Jan 2017, 7:15 PM
Ranjith M
Ranjith M - avatar
+ 1
\n in code starts a new line when you run the code, so hello\nworld! would be hello (new line) world
12th Jan 2017, 2:36 AM
APat _Penguin
APat _Penguin - avatar
0
thanks
11th Jan 2017, 3:59 PM
seetha
seetha - avatar
0
\n = New Line.
15th Jan 2017, 3:17 AM
Gor Julhakyan
Gor Julhakyan - avatar
0
\n is called escape sequence ,it helps in pushing the word to the next line like an enter key. while \t is called tab space which is similar to a space bar.
18th Jan 2017, 4:22 AM
vaishali
vaishali - avatar
0
It will create. New line
20th Jan 2017, 4:09 PM
Ankit kaintura
Ankit kaintura - avatar
0
it just mean : à new line
6th Mar 2017, 7:06 PM
mohamed
mohamed - avatar