Introduction to Python & How It Works
Challenge In Progress
0
20
5
P

Writing Your Very First Python Code & Understanding the Basics

Welcome to programming! If you have never written a line of code before, you are in the perfect place. Python is one of the world's most popular programming languages because it was created specifically to be clean, readable, and easy to understand. While other programming languages can look like a wall of confusing technical symbols, Python uses clear, everyday words that read almost like plain English sentences.
When you write a program, you are simply giving the computer a step-by-step list of instructions to follow. A program called the Python interpreter reads your instructions from top to bottom, one line at a time, and carries them out right away. You do not have to worry about how the computer's processor, silicon chips, or raw memory work behind the scenes—Python takes care of all the complicated technical machinery for you so you can focus entirely on creating useful projects.
The very first tool every Python programmer learns is the print() instruction. Think of print() as Python's megaphone: it tells the computer to display whatever message you give it onto your screen. Whenever you want Python to print words or sentences, you wrap those words inside quotation marks, like print("Hello, World!"). The quotation marks tell Python: "This is plain text to show on screen, not a command to run." If you give print() numbers or math, such as print(10 + 5), Python does the calculation first and displays the result 15.
Computers follow instructions with extreme precision. If you make a tiny spelling mistake or forget a closing parenthesis, Python stops and shows you an error message called a SyntaxError. A syntax error simply means Python did not understand the grammar of your instruction. Every programmer in the world makes typos every single day. Seeing an error message is not a failure—it is just Python pointing to a line and saying: "Let's take another look right here!"
Real-World Analogy
Think of Python as a friendly, attentive assistant sitting beside you with a notebook. You write down instructions line by line in plain English. The assistant reads each line in order, follows your instructions to the letter, and announces any results or messages you asked for using print().
Code ExamplePython 3
# Welcome to Python!
# Any line starting with # is a comment for humans to read. Python ignores it.

# 1. Print a friendly message to the screen
print("Welcome to your coding journey!")

# 2. Print multiple lines in order
print("Python reads code line by line from top to bottom.")

# 3. Print numbers and math results directly
print(2026)
print(10 + 5)
Key Rules & Concepts
  • Python is designed to be readable, friendly, and close to plain English.
  • The print() function tells Python to display text, numbers, or calculation results on your screen.
  • Text must always be wrapped in quotation marks (like "Hello") so Python knows it is text.
  • Python runs code from top to bottom, executing one line at a time.
  • Error messages are helpful guides that tell you exactly which line confused Python.

Challenge

Beginner

Initialize your Python workspace by storing a system name and status message, then printing a formatted status line and confirmation.

What to do:

  1. Set the variable system_name = "Python 3" and status = "Initialized"
  2. Print the formatted status line: f"[{system_name}] System Status
  3. Print the confirmation line: "CPython Bytecode Engine Ready."
Reference Solution Locked
0 Attempts

Solve the challenge above and run your code to verify it. If you are stuck, you can unlock the reference solution after running your code at least once.

Python
Write Code
1
2
3
4
5
6
7
8
9
10
# System initialization parameters
system_name = "Python 3"
status = "Initialized"

# TODO: Print the formatted status line matching:
# [Python 3] System Status: Initialized

# TODO: Print the confirmation line:
# CPython Bytecode Engine Ready.

TEST CASESCONSOLE
Output
// Press "Run Code" to execute
Expected Output
[Python 3] System Status: Initialized CPython Bytecode Engine Ready.