Kodeclik Blog
Python print()
Python’s print() is a versatile function that provides various options to format and style the output from your programs.
How the Python print() function works
The first thing to note about Python’s print() is that it is a function which means you need to pass it arguments. For instance:
This yields the output:
If we do:
We get:
Note that the second print() command prints its output on a new line. Calling print() without any arguments yields a blank line. For instance, the following segment of code:
gives: