+ 1

What's ans??

Is \ n wrong? I am confused. I can't go on to the next question.

25th Aug 2019, 10:31 PM
oichokabu🇯🇵
oichokabu🇯🇵 - avatar
2 Antworten
+ 5
In python if we wanna print text in new line then we use \n to write text in new line. For example you wanna print Hello I am boy Without using \n output will be in single line print("Hello I am boy") Output --> Hello I am boy With using \n output will in separate line print("Hello \nI am boy") Output-->Hello I am boy I hope it will help you otherwise it will help you. https://www.sololearn.com/discuss/1555439/?ref=app https://www.sololearn.com/discuss/1080696/?ref=app https://www.sololearn.com/discuss/1868674/?ref=app https://www.sololearn.com/discuss/1936849/?ref=app https://www.sololearn.com/discuss/1095022/?ref=app
26th Aug 2019, 12:30 AM
Sujan Sharma
Sujan Sharma - avatar
0
print 'First line \n Second line' \n works as new line. It's okay.
25th Aug 2019, 10:39 PM
Rimvydas Kanapka
Rimvydas Kanapka - avatar