Search⌘ K
AI Features

Console Output

Understand how to display output on the console using Python's print() function. Learn to customize output spacing, line endings, and explore formatted printing with f-strings and the format() method for effective message presentation.

Print output on the console

The built-in function print() is used to send output to the screen.

The print() function has the following form:

print(objects, sep = ' ', end = '\n', file = sys.stdout, flush = False)
...