What's ans??

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

8/25/2019 10:31:03 PM


2 Answers

New Answer


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


print 'First line \n Second line' \n works as new line. It's okay.