+ 2

New Lines?

Earlier it was said that \n is automatically inserted in output. But here we are putting \n between the string to enter a new line.

18th Nov 2016, 6:11 PM
Nishant
3 Answers
+ 8
\n is inserted automatically after output is finished, so next output will be on a new line. you manually insert \n to break your output to more than one line.
18th Nov 2016, 6:43 PM
Demeth
Demeth - avatar
0
\n is inserted automatically after output is finished,b it in string to get new line we entered\n
11th Dec 2016, 11:31 AM
VijayJain
0
Instead of \n we can use """hello World """or'''hello World ''' therefore the output will be hello World
23rd Jan 2017, 3:40 PM
TAMILMARAN