+ 1
Hi I m finding it difficult to change lines, how can I do that
I m in loop part of this training app
2 odpowiedzi
+ 14
\n
^ that is newline in a string
0
If you are asking about how to print the output on multiple lines, you can use either /n or use triple quotes
Ex.1:
print('Hello\nWorld')
Ex.2:
print('''Hello
World''')