Skip to content
CareerBridge
← Python: your first useful programs
GUIDED STARTER LESSON

Names, values and output

Store a value and display a useful sentence.

Understand the idea

A variable is a name that refers to a value. Python strings hold text, and quotes mark where the text begins and ends.

The print function displays output. It does not save a file. Names are case-sensitive: device and Device are different.

Use invented details for practice. A support script should never contain a real password.

Worked example

This program stores a device name and prints a readable sentence. Expected output: Checking: practice laptop.

device = "practice laptop"
print("Checking:", device)