+ 3
Why do we need "\n" in Phyton?
3 Respuestas
+ 5
\n moves the text to a new line.
Like this:
print("a\nb");
result:
a
b
Theres more characters you can add to strings too!
http://docs.oracle.com/javase/tutorial/java/data/characters.html
+ 1
it indicates new line
try this
print("Line\nNext Line")
+ 1
prints next line , can be compared to enter key in your keyboard
(Examples)
print ("love\n hate");
result:
love
hate
print("love\n\nhate");
result:
love
hate