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
GeeksForGeeks Geeks For Geeks
Example 2: Printing spaces between two values while printing in a single print statement.
x: 1 y: 2 1 + 2 = 3
Example 3: Print multiple spaces between two values.
Geeks For Geeks Geeks For Geeks Geeks For Geeks Geeks For Geeks
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.