Python Starter Lab

Python variables and print

Practice the first tiny Python patterns beginners see: saving a value and printing it back out.

Academy Plus 4 practice exercises 1 homework item

What you will learn

  • Explain what a variable is in plain English.
  • Explain what print does in plain English.
  • Recognize the relationship between a stored value and printed output.
  • Read tiny Python examples with variables and print.
  • Understand why this small pattern counts as a real first Python win.

Lesson shape

15 minute lesson with 10 sections, 4 exercises, 8 checkpoint questions, and 1 homework submission.

Student mode saves sections, safe practice results, quiz progress, and completion status.

Lesson preview

Step-by-step structure before you start

Overview

Your first small Python win

This lesson is about one of the first tiny Python wins: store a value, then show it back as output. That may sound small, but it teaches an important pattern that shows up again and again in real code.

You do not need advanced ideas for this lesson to count. One or two lines of Python are enough to help you see how stored information becomes visible on screen.

Start small on purpose

Saving a value and printing it back out is already a real beginner coding step.

Explain

What a variable is in plain English

A variable is a named place where Python can store a value. The value might be text such as a name or short message.

Beginners often start with variables because they make code feel less mysterious. Instead of losing a piece of information, Python can keep it in one place and use it again later.

Simple definition

A variable stores a value so Python can remember it and reuse it later.

Explain

What print does in plain English

The print function tells Python to show something as output. That means print helps turn code into a visible result you can read.

When you print plain text, Python shows that text. When you print a variable, Python shows the value stored inside that variable.

What print is for

print shows output so you can see what the code is producing.

Practice

Example 1: printing plain text

A tiny first example is:

print("Hello")

The word print tells Python to display something. The text "Hello" is a string because it is wrapped in quotes. The output would simply be Hello.

What this example shows

print can show plain text directly without using a variable yet.

Practice

Example 2: storing a name, then printing it

Another tiny example is:

name = "Ava"
print(name)

The first line stores the value "Ava" inside a variable named name. The second line prints the variable, which means Python shows the stored value as output.

What this example shows

A variable stores the value first, and print shows that stored value second.

Practice

Example 3: storing a short message

A third example is:

message = "Welcome"
print(message)

The variable name is message. The stored value is "Welcome". The printed output is Welcome. This pattern is still small, but it already shows how code can hold information and display it clearly.

What this example shows

Different variable names can store different values, but the pattern still stays the same.

Explain

Variable name, stored value, printed output

It helps to separate three parts clearly.

The variable name is the label, such as name or message.
The stored value is the information, such as "Ava" or "Welcome".
The printed output is what appears after Python runs the print line.

When beginners can tell those three parts apart, the code becomes much easier to follow.

Three small ideas

Name, value, and output are related, but they are not the same thing.

Explain

Why this tiny pattern matters

This pattern matters because it helps you see how stored information becomes visible output. It also introduces one of the most common first steps in Python: save something, then use it again.

Even if the example feels small, it still counts. These tiny code wins help build confidence and make later lessons feel more manageable.

Why this counts

Small patterns like variable plus print are real building blocks, not fake beginner work.

Explain

Common beginner mistakes

A few mistakes show up often here. Beginners may forget quotes around text, misspell the variable name, or confuse the variable itself with the printed result. Some also feel like the example is too small to matter.

Those mistakes are normal. The fix is usually simple: read the line carefully, check the quotes, check the spelling, and keep the pattern small.

Stay calm with the small stuff

Quotes, spelling, and careful reading matter a lot in tiny Python examples.

Wrap up

What to remember before lesson 5

A variable stores a value. print shows output. When you store a value first and print it second, you are already using one of the first real Python patterns beginners need.

This lesson is a small win on purpose. If you can read these short examples and understand what gets stored and what gets printed, you are building real Python confidence.

Take this with you

Store a value, print the result, and let small Python patterns build bigger confidence over time.

Keep moving

Finish this lesson, then move forward without losing your place.

Use the student player for saved sections, safe practice, quiz progress, and completion tracking.