In this article, we will see how to change line in python. If you are looking for ‘how to go to next line in python’, this article will help you for the same.
The new line character
\n in Python is used to mark the end of a line and the beginning of a new line.
In the above example, we have used the newline character \n various times. What this will do is when the interpreter encounters a new line character, it demotes the end of the current line and execution is changed to a new line. So the output of the above code will be
Hello World This is Python
A print() function without any parameters passed also create a new line.
print("Hello World") print() print("Python Point")
Hello World Python Point