Python · Stage 0 · Before You Code · Lesson 1 of 50

What Is a Programming Language?

Learn what code is, what a programming language does, and what “running” code actually means.

Course Overview

StageLessons
Before You Code
Storing Information
Doing Things with Values
Making Decisions
Repeating Things
Grouping Data
Reusable Code
Files and Errors
Organizing Bigger Programs
Intro to Objects
Beyond the Basics

A computer is extremely fast, but it does not guess what you want. It follows small, exact instructions. Programming means writing those instructions.

Imagine telling a robot to make a sandwich. “Make lunch” is too vague. A useful recipe says: take two slices of bread, add cheese, and put the slices together. Code is a recipe written with rules the computer understands.

Here is one complete Python instruction:

print("Hello!")
Line-by-line explanation
  1. print tells Python to display something on the screen.
  2. The opening round bracket ( begins the information given to print.
  3. "Hello!" is the text to display. Quote marks show where the text begins and ends.
  4. The closing round bracket ) finishes the instruction.