Print new line in Python Last Updated : 02 Jan, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will explore various methods to print new lines in the code. Python provides us with a set of characters that performs a specific operation in the code. One such character is the new line character "\n" which inserts a new line. Python a = "Geeks\nfor\nGeeks" print(a) OutputGeeks for Geeks We can also use Multiple \n for Blank Lines. Python a = "Geeks\n\nfor\n\n\nGeeks" print(a) OutputGeeks for Geeks There are various other methods to print new line in Python.Table of ContentUsing Empty print()StatementsUsing Triple Quotes for Multiline StringUsing end Parameter in print()Using Empty print() StatementsThe basic way to print multiple new lines is by using an extra print statement without any arguments. Each print statement will add a new line. Python print("Geeks") # inserting a single new line print() print("for") # inserting 2 new lines print() print() print("Geeks") OutputGeeks for Geeks Using Triple Quotes for Multiline StringIn Python, we can add multiline string by using the triple quotes """ or '''. Whatever is written inside these quotes, is printed as it is. Python a = """Hey I am Geek""" print(a) OutputHey I am Geek Using end Parameter in print()The print() function's end parameter can control what is printed at the end of the line. Setting it to \n ensures a new line: Python print("Geeks", end="\n") print("for", end="\n") print("Geeks") OutputGeeks for Geeks Comment More infoAdvertise with us Next Article Print a List of Tuples in Python T tanyasehr88x Follow Improve Article Tags : Python Python Programs Practice Tags : python Similar Reads Python New Line - Add/Print a new line Adding or printing a new line in Python is a very basic and essential operation that can be used to format output or separate the data for better readability. Let's see the different ways to add/print a new line in PythonUsing \n escape characterThe \n is a escape character and is the simplest way t 2 min read Print a List of Tuples in Python The task of printing a list of tuples in Python involves displaying the elements of a list where each item is a tuple. A tuple is an ordered collection of elements enclosed in parentheses ( ), while a list is an ordered collection enclosed in square brackets [ ].Using print()print() function is the 2 min read How to Print without newline in Python? In Python, the print() function adds a newline by default after each output. To print without a newline, you can use the end parameter in the print() function and set it to an empty string or a space, depending on your needs. This allows you to print on the same line. Example:Pythonprint("geeks", en 3 min read Print a List in Horizontally in Python Printing a list horizontally means displaying the elements of a list in a single line instead of each element being on a new line. In this article, we will explore some methods to print a list horizontally in Python.Using * (Unpacking Operator)unpacking operator (*) allows us to print list elements 2 min read How to Print a Tab in Python In Python, printing a tab space is useful when we need to format text, making it more readable or aligned. For example, when displaying data in columns, we might want to add a tab space between the values for a cleaner appearance. We can do this using simple methods like \t, the print() function or 2 min read How to Print a Dictionary in Python Python Dictionaries are the form of data structures that allow us to store and retrieve the key-value pairs properly. While working with dictionaries, it is important to print the contents of the dictionary for analysis or debugging.Example: Using print FunctionPython# input dictionary input_dict = 3 min read Like