Introduction
Displaying values
Variables
The print function
13. The print function
List basics
Summary

Instruction

Great! Python has one more way to display a value: the print() function. As its name suggests, the print() functions prints (displays) the value of the expression that you pass in as an argument, e.g. string or number:
print('I am happy.') 
I am happy

You can also pass in variables as arguments to print():

age = 5
print(age)
5

You can use the print() function anywhere in the code, not only at the end of your code.

Exercise

Print the following text:

Hello, Python! I am printing with print() function.