In Python, a new line is represented by the special character "\n". This character is often used in strings to create a new line or to separate lines of text.


What is \n in Python?


New Line in Python




For example, let's say you want to print out Hello world, with a separate line. You could do this using the \n in python character like so:


Example-



Output-




As you it is printing in a new line the \n is used for new line character

Dont use /n in python 

Always use \n in python


How to Add a New Line in Python

To add a new line in Python, you can use the "\n" escape sequence. This sequence tells Python to insert a new line character at that point in the string.