Camp 1 · Step 1 of 23
What is programming?
Before writing any code, let's demystify what programming actually is — and why you're closer to it than you think.
Welcome to your first step on the Python trail! Before we write a single line of code, let's clear up what programming actually is — because it's simpler than the movies make it look.
Programming is giving instructions
A program is just a list of instructions for a computer to follow. That's it. No magic, no genius required.
You already write programs for humans all the time. A cooking recipe is a program. Driving directions are a program. Assembly instructions for a bookshelf are a program:
- Take the wooden board.
- Insert four screws.
- If a screw doesn't fit, use the smaller one.
- Repeat for every shelf.
Notice steps 3 and 4: decisions and repetition. Those two ideas are the beating heart of every program ever written — from a pocket calculator to Netflix.
What is Python?
Computers ultimately speak in electrical signals — ones and zeros. Writing those directly would be miserable, so people invented programming languages: ways to write instructions that are readable by humans and translatable for machines.
Python is one of those languages, and a famously friendly one. Compare how you'd print a greeting in three different languages:
public class Main {
public static void main(String[] args) {
System.out.println("Hello!");
}
}#include <stdio.h>
int main(void) {
printf("Hello!\n");
return 0;
}print("Hello!")One line. That readability is why Python is the most recommended first language in the world — and why scientists, web developers, and AI researchers all use it daily.
What programs are made of
Nearly every program — including the apps on your phone — combines the same five ingredients:
| Ingredient | What it does | Recipe analogy |
|---|---|---|
| Input | Information going in | The raw vegetables |
| Output | Results coming out | The finished dish |
| Variables | Remembered values | "Set the chopped onions aside" |
| Decisions | Choosing a path | "If it browns too fast, lower the heat" |
| Repetition | Doing things again | "Stir until smooth" |
On this trail you'll meet each ingredient one at a time, always with code you can run and change yourself.
Which statement about computers is true?
A recipe says: 'Taste the soup. If it's bland, add salt. Stir 20 times.' Which programming ideas does it use?
What's next
Enough theory — in the next step you'll write and run your first real Python program, right here in the browser. No installation, no setup: the playground runs Python itself.