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
🌐
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.
Discussions

Use newlines \n with the command python -c
How i can execute a piece of code with newlines with the -c option of the python command: # This don't work ! python -c "print('first line') \n print('second line')" I try too with reading from py file : # test.py pri… More on discuss.python.org
🌐 discuss.python.org
3
0
October 18, 2022
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
How do i get new lines in a text file if the variables are an input type
There isn’t a separate “input type”. Using the input function gives you a perfectly ordinary string. The issue is because this string doesn’t have a newline at the end. In your code example, the string named a has a newline at the end, because it was written right there in the string ... More on discuss.python.org
🌐 discuss.python.org
3
0
May 4, 2023
How to add newline to Python file that will print as such in string?

\n already does render as a newline in both situations. And it already doesn’t in both situations.

That’s confusing, so I’ll try to explain. \n isn’t a special character within a string. When you look at strings (either by looking at the string in Python, or by opening the file you were talking about in an editor), you can see \n right there in the middle of the line, no newline at all.

What \n is however, is a printer control character. It doesn’t mean anything special to a string datatype, but it does mean something to a printer, such as your terminal STDOUT, or Python’s print() command. If you print() the string within Python you’ll see a line break, because \n is only interpreted as something special when printing.

More on reddit.com
🌐 r/learnpython
3
1
March 31, 2021
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360000178700-input-inserting-new-lines-when-pressing-enter
input() inserting new lines when pressing enter – IDEs Support (IntelliJ Platform) | JetBrains
July 9, 2018 - Create new user\n2. Log in') valid_selections = [1, 2] input_is_valid = False selection = None while not input_is_valid: try: selection = int(input('Selection: ')) if selection in valid_selections: input_is_valid = True else: print('The number you entered is not a valid selection.') except ValueError: print('The value you entered is not a number.') handle_main_menu_selection(selection) def handle_main_menu_selection(selection: int) -> None: if selection == 1: create_new_user_menu() elif selection == 2: user_login_menu() else: raise ValueError(f'Selection {selection} is invalid.') def create_ne
🌐
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.
Find elsewhere
🌐
Reddit
reddit.com › r/learnpython › how would i make the output make a new line after each output?
r/learnpython on Reddit: How would I make the output make a new line after each output?
November 11, 2022 -

I'm new to coding in general and i'm making a little program that you put in a number and it tells you what change it would be. so 50 would be 2 quarters. This is an example of how it looks like for quarter:

if Num_Quarters > 0: print(Num_Quarters, end=" ") if Num_Quarters == 1: print("Quarter", end=" ") else: print("Quarters", end=" ")

This works just fine but if it has more than one output such as nickels it will write it in one line like '2 quarters 1 nickel' when I want the nickels to be on its own line below it. From my understanding the way to make a new line is to incorporate \n: but when I do I just get errors. I might be putting it in the wrong spot? Any help is appreciated

🌐
Sololearn
sololearn.com › en › Discuss › 757047 › how-can-i-get-a-newline-by-input
How can I get a newline by input? | Sololearn: Learn to code for FREE!
October 2, 2017 - How can I get a newline by input? I tried to type \n and \\n, but they don't work. ... Just type \n in a string and python automatically generates new line...
🌐
Python documentation
docs.python.org › 3 › tutorial › inputoutput.html
7. Input and Output — Python 3.14.3 documentation
This makes the return value unambiguous; if f.readline() returns an empty string, the end of the file has been reached, while a blank line is represented by '\n', a string containing only a single newline.
🌐
GitConnected
levelup.gitconnected.com › 7-python-tools-that-can-replace-a-full-time-job-income-293de31e6c96
7 Python Tools That Can Replace a Full-Time Job Income | by Hassan Nauman | Mar, 2026 | Level Up Coding
March 2, 2026 - I’ve spent over 4 years building ... of them were 200 lines of code. Some made more per month than junior developer salaries. Let’s talk about 7 Python tools you can build that actually generate income. No fluff. Only leverage. ... Data is the new oil....
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-new-line-add-print-a-new-line
Python New Line - Add/Print a new line - GeeksforGeeks
July 23, 2025 - Explanation: This code uses os.linesep to add a platform-specific newline between the strings "Hello," and "This is a new line.", and then prints the concatenated message. Comment · Article Tags: Article Tags: Python · Python Programs · Python-Output · Python Fundamentals · Python Introduction1 min read · Input and Output in Python2 min read ·
🌐
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:
🌐
LearnPython.com
learnpython.com › blog › print-newline-in-python
How to Print a Newline in Python | LearnPython.com
May 15, 2023 - Note that you can use the end parameter of the print() function to change the default line-ending character. By default, the end parameter is set to "\n", but you can set it to an empty string "" to remove the newline character.
🌐
Altcademy
altcademy.com › blog › how-to-print-new-line-in-python
How to print new line in Python
September 11, 2023 - Python is a versatile language and provides more than one way to print a new line. Another method is to use multiple print statements. Each print() function in Python automatically adds a new line at the end of the input.
🌐
Sololearn
sololearn.com › en › Discuss › 1739904 › please-can-explain-how-to-input-new-lines-on-python
Please can explain how to input new lines on python | Sololearn: Learn to code for FREE!
March 28, 2019 - When you want an extra newline, you can use an empty print() Or you end your string on the former line with \n. print('Extra!\n') ... You can get multiple lines from input by this code: lines = [] while True: line = input() if line: ...
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-receive-user-input-python
How to Receive User Input in Python: A Beginner’s Guide | DigitalOcean
February 14, 2025 - In this tutorial you will learn various ways to receive user input in Python, including the input() function, command-line arguments, GUI-based input handling, and best practices for validation and error handling.
🌐
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)
🌐
GeeksforGeeks
geeksforgeeks.org › python › difference-between-newline-and-carriage-return-in-python
Difference between Newline and Carriage Return in Python - GeeksforGeeks
July 23, 2025 - This article aims to provide a clear understanding of the difference between newline & carriage return in Python. The newline character is represented by "\n" & it is used to create a new line in the string or file.
🌐
W3Schools
w3schools.com › c › c_newline.php
C New Lines
In this case, \n tells the program to move the cursor to the beginning of the next line. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com · If you want to report ...