How to print spaces in Python3? Last Updated : 01 Aug, 2020 Comments Improve Suggest changes Like Article Like Report In this article, we will learn about how to print space or multiple spaces in the Python programming language. Spacing in Python language is quite simple than other programming language. In C languages, to print 10 spaces a loop is used while in python no loop is used to print number of spaces. Following are the example of the print spaces: Example 1: A simple way to print spaces Python3 # Python program to print spaces # No spaces print("GeeksForGeeks") # To print the blank lines print(' ') # Also print the blanks print(" ") # To print the spaces in sentence print("Geeks For Geeks") Output: GeeksForGeeks Geeks For Geeks Example 2: Printing spaces between two values while printing in a single print statement. Python3 # Python program to print spaces x = 1 y = 2 # use of "," symbol print("x:",x) print("y:",y) print(x,"+",y,"=",x+y) Output: x: 1 y: 2 1 + 2 = 3 Example 3: Print multiple spaces between two values. Python3 # Python program to print spaces # To print the single spaces in sentence print("Geeks"+" "+"For"+" "+"Geeks") print("Geeks","For","Geeks") # to print spaces by given times print("Geeks"+" "*3+"For"+" "*3+"Geeks") print("Geeks"+" "*5+"For"+" "*10+"Geeks") Output: Geeks For Geeks Geeks For Geeks Geeks For Geeks Geeks For Geeks Comment More infoAdvertise with us Next Article How to print spaces in Python3? S SHUBHAMSINGH10 Follow Improve Article Tags : Python python-basics python-io Practice Tags : pythonpython-io Similar Reads How To Print A Variable's Name In Python In Python, printing a variable's name can be a useful debugging technique or a way to enhance code readability. While the language itself does not provide a built-in method to directly obtain a variable's name, there are several creative ways to achieve this. In this article, we'll explore five simp 3 min read How to Take a Tuple as an Input in Python? Tuples are immutable data structures in Python making them ideal for storing fixed collections of items. In many situations, you may need to take a tuple as input from the user. Let's explore different methods to input tuples in Python.The simplest way to take a tuple as input is by using the split( 3 min read How to Print String and Int in the Same Line in Python Printing both texts and integers on the same line is a common chore for programmers. Python, fortunately, has various methods for accomplishing this, making it simple to display a combination of text and numerical values in your output. In this article, we'll explore various ways to print strings an 2 min read How To Print Unicode Character In Python? Unicode characters play a crucial role in handling diverse text and symbols in Python programming. This article will guide you through the process of printing Unicode characters in Python, showcasing five simple and effective methods to enhance your ability to work with a wide range of characters Pr 2 min read Convert integer to string in Python In this article, weâll explore different methods for converting an integer to a string in Python. The most straightforward approach is using the str() function.Using str() Functionstr() function is the simplest and most commonly used method to convert an integer to a string.Pythonn = 42 s = str(n) p 2 min read Python | sep parameter in print() The separator between the arguments to print() function in Python is space by default (softspace feature) , which can be modified and can be made to any character, integer or string as per our choice. The 'sep' parameter is used to achieve the same, it is found only in python 3.x or later. It is als 3 min read Add padding to a string in Python Padding a string involves adding extra characters such as spaces or specific symbols to adjust its length or align it in a visually appealing way. Letâs dive into the most efficient methods to add padding to a string in Python.Using Python f-stringsF-strings allow us to specify padding directly with 2 min read Print lists in Python Printing a list in Python is a common task when we need to visualize the items in the list. There are several methods to achieve this and each is suitable for different situations. In this article we explore these methods.The simplest way of printing a list is directly with the print() function:Pyth 3 min read Python print() function The python print() function as the name suggests is used to print a python object(s) in Python as standard output. Syntax: print(object(s), sep, end, file, flush) Parameters: Object(s): It can be any python object(s) like string, list, tuple, etc. But before printing all objects get converted into s 2 min read Fill a Python String with Spaces This article will show you to fill out a python string with spaces to the left, right, and around a string in Python. Let's suppose we have a string GeeksforGeeks, and we want to fill N number of spaces on left, right, and around the string. Note that in the case of space around the string if N is o 3 min read Like