Python Your First Python Program
Every developer in history started with "Hello, World!". It is a sacred tradition. In Python, print() is your loudspeaker: it outputs text, numbers, and calculations to the terminal, automatically starting a fresh line each time.
"Think of print() as your program talking out loud. If you put text in quotes, Python speaks it word-for-word. If you give it a math problem like 5 + 3 without quotes, Python does the math first and speaks the answer: 8."
Deep Dive: How It Works
The print() function takes one or more values inside its parentheses and sends them to standard output (STDOUT).
Text must always be surrounded by quotes (single 'hello' or double "hello"). If you forget the quotes, Python thinks you are referencing a variable name and will throw a NameError.
You can pass multiple items separated by commas inside a single print statement, like print("Score:", 100), and Python will automatically separate them with a space.
Syntax Blueprint
print(item1, item2, item3, ...)
Items inside the parentheses get converted to text and printed on a single line separated by spaces.
Core Rules to Remember



Common Beginner Traps & How to Fix Them
Mixing single and double quotes on the same stringWhy it happens: Starting with a double quote " and ending with a single quote ' confuses the parser.
How to fix: Pick either "double" or 'single' quotes and stay consistent on that string.
Live Interactive Example
Hit Run Code to see it liveAnother Practical Example
Your Turn: Micro Challenge
No pressure! Edit the starter code below and test your solution with instant feedback.
Print a multi-item status report
Use print() to output "Server status: Online" to the console.
Finished reading and practicing?
Mark this lesson as completed to update your course progress.