How to create new lines | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create new lines

if I don't want '\n' in my answer

12th Mar 2017, 2:27 PM
vijay duggal
vijay duggal - avatar
2 Answers
+ 2
There a few different ways, here are the easiest...you could insert '\n' into the string, you could call an empty print() statement, or you could use a multi-line string inside a print statement by starting and ending your string with 3 quotation marks, then simply wrap your lines as you would like them to print.
12th Mar 2017, 2:32 PM
Phillip Clapham
Phillip Clapham - avatar
+ 1
thanks
12th Mar 2017, 2:51 PM
vijay duggal
vijay duggal - avatar