What Is the Print Statement in Python? A Beginner’s Guide to Your First Output

If you’ve just stepped into the world of Python, you’re probably wondering how to make your code “do” something. That’s where the print() statement comes in. It’s the simplest way to get feedback from your program. Whether you want to display a word, a number, or even a sentence, print() is your tool.

But before we dive into that, let’s quickly go over what we’ve already covered in this beginner series.

A Quick Recap of Lessons 1–3

Installing Python
We walked through how to install Python on both Windows and Mac, so you can run your code with no issues.

Setting Up PyCharm
Then we introduced PyCharm, a user-friendly code editor that makes writing Python easier.

Running Your First Code
You learned how to write your first few lines of Python and how clean the syntax is. Now it’s time to get some output.

What the Print Statement Really Does

At its core, the print statement shows information on the screen. Think of it like sending a quick message to your computer, and your computer says it back out loud on the screen.

This might be something simple like printing your name:

print("My name is Sarah.")

Or something like math:

print(10 + 2)

In both cases, Python looks at what’s inside the parentheses and displays it. That’s it. No complex steps, just instant feedback.

Why It Matters When You’re Starting Out

When you’re learning something new—especially something like coding—you want to see results right away. That sense of “I typed something and it worked” helps you build confidence. The print statement gives you that.

You also use it to understand what’s going on behind the scenes. Did your code do what you expected? Print it out and see. Not sure if a variable has the right value? Print it. It becomes your debugging buddy as you go along.

A Few More Things You Can Do

You’re not limited to just one piece of text. Python lets you print multiple values together:

print("Hello", "John")

Or use a variable:

color = "blue"
print("Your favorite color is", color)

Python automatically adds a space between the words, so you don’t have to.

And yes, you can mix text with numbers too:

print("I am", 30, "years old.")

You’ll start to notice how flexible it is, which is part of why beginners love learning Python.

A Small Practice Challenge

Give this a shot: create a script that prints your name, your city, and a fun fact about yourself.

Here’s an example:

print("Name: Carlos")
print("City: Austin")
print("Fun Fact: I play the guitar.")

Type that into PyCharm or any editor you’re using, run it, and see what comes out.

Prefer to Watch Instead?

If you’d rather watch than read, this part of the course starts at the 22:13 mark in our YouTube video. You’ll hear a simple walkthrough of how print works and see it in action.

Watch here:
👉 Python Print Statement – Video Lesson (22:13)

What’s Coming Next

Now that you’ve seen how to show output, let’s take it a step further. In the next lesson, we’ll talk about how to let users type something into your program using the input() function. That’s when your code starts feeling interactive.

Want to Keep Learning?

You can go through the entire beginner course on our website, complete with real examples and mini-projects.

Visit here to get started:
Learn Python From Scratch – Beginner to Advanced

Need more help? Head over to itlearn360.com and check out our free resources and support channels.

Gain knowledge in software testing and elevate your skills to outperform competitors.

Training Program Demo Timing Training Fees Action
Software Testing Online Certification Training Demo at 09:00 AM ET Starts at $1049 Book your demo
Software Testing Classroom Training in Virginia Demo at 01:00 PM ET every Sunday Starts at $1699 Book your demo
Selenium Certification Training Demo at 10:00 AM ET Starts at $550 Book your demo
Manual Testing Course Demo at 09:00 AM ET Starts at $400 Book your demo
SDET Course – Software Automation Testing Training Demo at 11:00 AM ET Starts at $550 Book your demo
Automation Testing Real-Time Project Training Demo at 10:00 AM ET Starts at $250 Book your demo
Business Analyst Certification Demo at 12:00 PM ET Starts at $550 Book your demo

Search for QA Testing Jobs, Automation Roles, and more…