+ 1

Python code for line break? Like the "endl" in C++ and <br \> in html

19th May 2017, 10:35 PM
Dylee
Dylee - avatar
12 Antworten
+ 4
Yes, the print() function in python will automatically print a newline after a string you pass it as argument. If you want just a newline you can use it without argument too, like this: print() this will print just a newline.
19th May 2017, 10:51 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 4
https://code.sololearn.com/cV1QzYWzeIz6/?ref=app Y'all can Please check out my code on the playground, and prolly share it to other places, thank you😁
20th May 2017, 6:55 AM
Dylee
Dylee - avatar
+ 2
how bout now
19th May 2017, 10:41 PM
Dylee
Dylee - avatar
+ 2
use "\n"
19th May 2017, 10:42 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
print("hello \n did the line just break.. \n lol.. not it didn't"); 👆 that's it.. use the newLine character: \n
20th May 2017, 5:55 AM
W͛onderB͛oy (◣_◢)
W͛onderB͛oy (◣_◢) - avatar
+ 2
u're welcome bro.. 👍
20th May 2017, 6:51 AM
W͛onderB͛oy (◣_◢)
W͛onderB͛oy (◣_◢) - avatar
+ 2
yea bro.. am Nigerian.. ☺
21st May 2017, 9:31 AM
W͛onderB͛oy (◣_◢)
W͛onderB͛oy (◣_◢) - avatar
+ 1
Hello Ulisses, the code Matrix that you liked is NOT MINE. I had only saved it to study it and was mortified to see that I had made it public by mistake.
20th May 2017, 12:18 AM
showthecode
showthecode - avatar
+ 1
It's good of your part to say that @Oki. That shows you have moral values.
20th May 2017, 12:23 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
Thank you
20th May 2017, 6:51 AM
Dylee
Dylee - avatar
+ 1
Ogar are you Nigerian?
20th May 2017, 6:54 AM
Dylee
Dylee - avatar
0
I did not understand the question
19th May 2017, 10:40 PM
Ulisses Cruz
Ulisses Cruz - avatar