Put it inside of the quotes:

Number = raw_input("Enter a number\n")

\n is a control character, sort of like a key on the keyboard that you cannot press.


You could also use triple quotes and make a multi-line string:

Number = raw_input("""Enter a number
""")
Answer from Blender on Stack Overflow
🌐
Python.org
discuss.python.org › python help
How do i get new lines in a text file if the variables are an input type - Python Help - Discussions on Python.org
May 4, 2023 - # YOUR CODE GOES HERE a='introduction\n' b=input("name \n") c=input("voorname\n") rapport=open("rapport.txt", 'w').writelines(a) rapport=open("rapport.txt", 'a').writelines(b) rapport=open("rapport.txt", 'a').writelines(c)
Discussions

python - How to make text from user input start a new line at every space? - Stack Overflow
Essentially I want each new word from the user input to be on the next line, so a sentence such as: "Hello World" would appear as "Hello" "World" Here is my current script: EnterString = input("E... More on stackoverflow.com
🌐 stackoverflow.com
Accepting input till newline in python - Stack Overflow
While this works perfectly with ... the raw_input() function). The screen just stays dumb without any response. Why is that? Is there any inbuilt function with which i can convert strings back to integers!? ... Please watch out with whitespaces in Python. I realized that your code example mixes tabs and common spaces. ... Probably the slickest way that I know (with no error handling, unfortunately, which is why you don't see it too often in production): >>> lines = list(iter(input, ... More on stackoverflow.com
🌐 stackoverflow.com
how to go to a new line after getting an input in python? - Stack Overflow
I'm new to python. I just wanna get an input and go to a new line after that This is how my code looks like, name=input("name :\n") print(name) When I run this I get, name : blue blue W... More on stackoverflow.com
🌐 stackoverflow.com
How would I make the output make a new line after each output?
Remove the end=" " from the last two print statements. More on reddit.com
🌐 r/learnpython
4
2
November 11, 2022
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-new-line-add-print-a-new-line
Python New Line - Add/Print a new line - GeeksforGeeks
July 23, 2025 - The \n is a escape character and is the simplest way to insert a new line in Python.
🌐
DataCamp
datacamp.com › tutorial › python-new-line
Python New Line: Methods for Code Formatting | DataCamp
August 14, 2024 - Master Python new line methods for code formatting, including \n for line breaks in strings and print() statements and the end parameter for single-line output.
🌐
iO Flood
ioflood.com › blog › new-line-python-guide-uses-and-examples
New Line Python | Uses, Printing and Formatting Tutorial
July 23, 2024 - For example, you can use a space instead of a newline character to keep the output on the same line: print('Hello,', end=' ') print('world!') Output: #Hello world! When you run this code, Python will print ‘Hello, world!’ on the same line, ...
🌐
AskPython
askpython.com › home › add a newline character in python – 6 easy ways!
Add a newline character in Python - 6 Easy Ways! - AskPython
February 16, 2023 - List before adding newline character to it: ['Python', 'Java', 'Kotlin', 'Cpp'] List after adding newline character to it: Python Java Kotlin Cpp · At the very beginning stage, it is important to know the execution of functions on the console. To add a newline on the console use the below code– ... The newline character can be added to print() function in order to display the string on a new line as shown below–
🌐
freeCodeCamp
freecodecamp.org › news › print-newline-in-python
Print Newline in Python – Printing a New Line
March 22, 2023 - The simplest and most common way to print a newline character in Python is by using the \n escape sequence. For example, the following code will print two lines of text, with a newline character between them:
Find elsewhere
🌐
Quora
quora.com › How-do-you-make-a-line-break-in-Python-other-than-print-I-just-started-recently
How to make a line break in Python, other than print('') (I just started recently) - Quora
When reading/writing files in text mode, Python normalizes newlines on most platforms unless you disable it (open(..., newline="")). In formatted output (f-strings, format()), include "\n" where you need a break: f"first\nsecond". ... The cleanest approach, if possible, is to use \r, which goes back to the beginning of the line...
🌐
Python Cheatsheet
pythoncheatsheet.org › home › builtin › input
Python input() built-in function - Python Cheatsheet
The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. The input() function in Python is a built-in function that allows a program to read a line of text from the user’s keyboard.
🌐
Sololearn
sololearn.com › en › Discuss › 2498578 › how-to-take-3-or-more-inputs-separated-by-a-newline-in-python
How to take 3 or more inputs separated by a newline in Python? | Sololearn: Learn to code for FREE!
pythoninputbeginner · 15th Sep 2020, 5:52 PM · Sabokhat Kalandarova · 2 Answers · Answer · + 4 · Multiple inputs separated by line: name = input() age = input() print(name + " is " + age) 15th Sep 2020, 5:58 PM · JaScript · + 1 · # Decide the numbers of inputs.
🌐
LearnPython.com
learnpython.com › blog › print-newline-in-python
How to Print a Newline in Python | LearnPython.com
This causes the text to be printed with each line on a separate line. Newlines can also be used to separate logical sections of code or data, such as in the case of a CSV or a text file where each row of data is separated by a newline character. You can verify this by opening a .txt file in Python, such as: >>> file = open("example.txt", "rb") >>> print(file.readlines())
🌐
TalnCloud
taln.cloud › post › how-to-add-python-new-line
How to add a new line in Python?
In this short tutorial, we look at how to add a Python new line. We look at the Python new line character and how the other methods can be used.
Price   $18 - $49
Address   Electronic City Phase 1, 560100, Bengaluru
(5.0)
🌐
STechies
stechies.com › python-insert-new-line-into-string
Python: Insert New Line into String
# Python program to insert new line in string # Declare a List mystring = "Hello\n\ This is\n\ Stechies\n\ for,\n\ Tech tutorials." # Print string print(mystring) ... Hello This is Stechies for, Tech tutorials. Just like the previous example, the newline character mentioned after every line of code brings that string to the next line.
🌐
www.game-u.com
game-u.com › news-and-blog › python-print-new-line
Python Print New Line: Easy Ways Add Line Breaks in Python
February 2, 2026 - To avoid a newline, use print(…, end=””). When you want to format text output in Python, knowing how to give next line in Python in print is essential — one of the first skills covered in our kids coding basics resources.
🌐
ITGENIO
itgenio.net › blog › how-to-print-new-lines-in-python
What is \n in Python | How to Print New Lines - Itgenio Blog
Python will insert a new line even though it didn't write any visible text to the console. Example: print("This is the first line.") print() # This line will create a single new line print("This is the second line.")
🌐
Flexiple
flexiple.com › python › python-new-line
Python New Line: How to add a new line - Flexiple
Learn how to use the Python new line character `\n` for effective text formatting in print statements and file operations, enhancing readability and structure.
🌐
W3Schools
w3schools.com › python › python_user_input.asp
Python User Input
Python stops executing when it comes to the input() function, and continues when the user has given some input. In the example above, the user had to input their name on a new line.