0

What is the use of \n in python?

Python

11th Jun 2020, 2:13 PM
Umar Ansari
Umar Ansari - avatar
3 ответов
+ 5
It's a newline character. Not just in Python. https://www.sololearn.com/learn/Python/2274/
11th Jun 2020, 2:14 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
In python \n is used for break line. We can join strings using this character, and it's possible to split strings using \n as well. But this isn't really useful for user input.
11th Jun 2020, 4:28 PM
Mandip Adhikari
Mandip Adhikari - avatar