Displaying Output with print()
Write your first Python code with print(), show text and numbers, and learn how to fix tiny early errors.
Sounds useful?
Jump into the interactive version.
No setup. No account. Just Python.
Displaying Output with print()
Write your first Python code with print(), show text and numbers, and learn how to fix tiny early errors.
Jump into the interactive version.
No setup. No account. Just Python.
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:
print() to display text on the screen42, 3.14, and -7By the end, you will have your first Python output working and a small checklist for dealing with those first annoying-but-normal errors.
Ready to practice this in the browser?
> Play now