Compute and Output
Learn how to display data on the computer screen.
The built-in print()
function
Let’s start building the project using built-in functions. We have already seen some built-in functions, and we know that a function does the following things:
It takes something as its input.
It processes this input to create some output.
It returns the output.
The most prominent Python built-in function that prints something on the screen is print
. It prints anything we give as input on the screen. For instance, guess the result of the following code when you press the “Run” button?
Get hands-on with 1400+ tech skills courses.