0

Print new line in Python

Hello!I want to print a string on a new line.In java it marked"\n".

23rd Aug 2018, 6:18 PM
MrPeterPlay
MrPeterPlay - avatar
1 ответ
+ 11
In Python3, the `print` function already adds a new line at the end of the string, because its parameter `end` is set to `\n` by default.
23rd Aug 2018, 6:36 PM
Eduardo Petry
Eduardo Petry - avatar