Menu
Coddy logo textTech

Output

Part of the Fundamentals section of Coddy's Python journey — lesson 24 of 77.

We have already seen how to output something, but let's recap.

In programming it's often called "printing" to output something.

In Python, to print something to the screen we use print()

For example,

print("Hello")

The above example prints "Hello" to screen.

Recall that you must enclose what you want to print with "" or with '', it is a string inside the print().

challenge icon

Challenge

Beginner

Write a program that prints "I love Python programming"

Cheat sheet

To print to the screen in Python:

print("Your text here")

Key points:

  • Use the print() function
  • Enclose the text in quotation marks (either "" or '')
  • The text inside quotes is called a string

Try it yourself

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals