How to Get a New Line in Python
It is common in Python programs to print details of the program to the screen of the user. When this occurs, you may want to separate output lines with a new line break so that the text doesn't run together and make it hard for users to read and understand. This is accomplished with the use of the new line character in your Python application.
Instructions
-
-
1
Open the Python code for editing in your favorite code editor, such as Notepad or the default Python code editor.
-
2
Go to the line in your code where you need to add a new line break to your output text.
-
-
3
Type "\n" (without the quotes) in the section where you want to generate the new line break.
-
1