What is the print() function good for in Python?

Experience Level: Junior
Tags: Python

Answer

The print() function prints the specified message to the screen, or other standard output device (stdout).

Example:

# this prints 'Hello world'

print("Hello world")

Python for beginners
Python for beginners

Are you learning Python ? Try our test we designed to help you progress faster.

Test yourself