0

Why would you want \n in your output?

I don't understand this 'newline' stuff...

8th Feb 2016, 10:05 PM
Elena
2 Respostas
+ 1
Elena, the reason for the '\n' is to create a new line during the print out. For a simple example: print("Hello\nWorld") would actually allow you to have the Output on two lines: >Hello >World Does this answer your question?
15th Feb 2016, 5:00 PM
Don Smith
Don Smith - avatar
0
It would be the same as pressing enter in a regular text doc, just that you are sending the linshift to a seperate place with the code for "lineshift". /n
14th Jun 2016, 1:32 AM
Vegard Bratteng
Vegard Bratteng - avatar