1.02
Completed
Displaying Output with print() Displaying Output with print()

Write your first Python code with print(), show text and numbers, and learn how to fix tiny early errors.

Displaying Output with print()

Sounds useful?

Jump into the interactive version.

No setup. No account. Just Python.

Interactive Python lesson

Displaying Output with print()

This Block gets you writing your first visible Python code. You will use print() to display text, numbers, and multiple lines of output, while learning how Python runs code from top to bottom.

You will also meet the tiny errors that show up early: missing quotes, missing parentheses, and small punctuation mistakes that can break a line. Nothing scary, just the classic beginner stuff handled calmly.

What you will learn:

  • Use print() to display text on the screen
  • Print multiple lines in a predictable order
  • Print simple numbers like 42, 3.14, and -7
  • Understand the difference between code and output
  • Spot and fix early syntax mistakes with quotes and parentheses

By the end, you will have your first Python output working and a small checklist for dealing with those first annoying-but-normal errors.

> Start now 82 cards · about 7 min

Ready to practice this in the browser?

> Play now