The tools programmers use

The lessons run in your browser, but the projects run on your own computer. A project is a larger program you build yourself after each section, in your own folder, to practice the ideas. That takes a few tools. This page introduces them: what each one is and why we use it.

Think of it as a map, not a manual. All of this background is optional. You do not need to memorize anything or install anything yet. Each tool gets its own pages later, linked below. If this page starts to feel like too much, skim it or skip it: the lessons in Section 2 run in your browser with nothing to install, and the parts that confuse you now make more sense as you come back to them.

Tool What it is for Where you set it up
Source file Holds the program you write Every project
Python The language you write in Every lesson
Code editor (VS Code) Where you write and save your files Set up your editor
Terminal Typing commands to your computer What a terminal is and Find your way around
uv Installs Python on your computer in one go Install Python with uv

Programs and source files

A program is a list of instructions for a computer, the way a recipe is a list of instructions for a cook. You write the instructions in a plain text file, as you might write a recipe in a notes app. That file is the source file, and the instructions inside it are the source code. Here is a tiny one:

A sheet of paper labeled total.py holds four lines of Python. Three notes point at it: the name ends in .py, each line is one instruction, and it is plain text that any text editor can open.

Read the four lines. You have never programmed, but you may understand more than you expect.

What do you think this program does? Read it, make a guess, then press Run to check. Then change one of the prices and run it again.

If you guessed that it adds the two prices and prints Your total is 7, you just read Python. The words are mostly English, and = and + work close to how they do in math. A name like total is a label for a number, and print shows something on the screen.

Writing a program means writing and saving files like this one. Every file has a name and an ending, called its extension. The extension tells your computer what the file contains. You already know some of them. A note ends in .txt, a Word document in .docx (or .doc in older versions), a photo in .jpg, and a song in .mp3. Each ending is linked to a program that knows how to open that file: Word opens .docx files, and a photo viewer opens .jpg files. Some computers hide the ending by default, but it is still there.

A Python file ends in .py, for example total.py. Word works on documents, and the tool for writing code works on .py files (and files for other programming languages). We will use that tool in a moment.

Recall: click each blank to check yourself

A source file has a name and an that tells your computer what the file contains. A Python file ends in .

Running a program means asking the computer to carry out the instructions in the file, from the top down. Here in the lessons you press Run. In the projects you will run your own files from a terminal, which later pages teach. You will write and run your first source file in Your first Python file, and every lesson from Section 2 on teaches the language itself in detail. For now, you only need the idea.

Programming languages: a middle ground

People and computers speak very different languages. We think in English or Spanish or Mandarin. A computer's processor, the chip that does the work, only understands machine code, long strings of 1s and 0s. If you tell a computer what to do in plain language, it has no idea what you mean.

A person says "Add the price of eggs and milk" to a computer. A big red X sits between them, because the computer cannot follow a sentence.

Human language is also loose. "Add the price of eggs and milk" leaves a lot open: which prices, added how, and where does the answer go? People fill in the gaps without noticing. A computer cannot.

Look back at the program above. Its third line says the same thing, exactly: total = price_of_eggs + price_of_milk. It names which prices (the two labels), how to combine them (+) and where the answer goes (total). Nothing is left for the computer to guess.

So we need a language that is precise enough to be converted into machine code reliably, and still readable enough that a person can write it. That is a programming language like Python. It reads a little like English, but every line means exactly one thing.

Human language, Python and machine code in a row. You write Python, and an interpreter translates it into machine code.

Something has to do the translating. It is a program called an interpreter (some languages use a close relative called a compiler). You hand it your .py file and it translates the instructions into machine code the computer can follow, like a person translating a speech out loud as the speaker talks. When you press Run in a lesson, an interpreter inside your browser does exactly this. You write the readable version, and the computer gets the machine version. You will use the interpreter in every lesson of the course.

Recall

What does an interpreter do?

Show the answer

It translates the instructions you wrote in Python into machine code the computer can follow.

The editor: a word processor for code

You already know what a word processor is. Microsoft Word helps you write documents: it fixes spelling, formats headings and saves your work. A code editor does the same job for programs, and it works on .py files.

You could write code anywhere that accepts text, even in a basic notepad, the way you could write an essay in one. It would work, but you would give up a lot of help. A code editor is built for the job. Here is what one looks like:

A mock code editor. A file panel on the left lists the python-projects folder. The open file, hello.py, has line numbers, colored code, and a red squiggle under prnt, a misspelling of print. Four numbered notes explain these.

It colors your code so it is easier to read, flags likely typing mistakes the way Word underlines a misspelled word, numbers the lines so error messages can point at one, and shows the files in your project. This course uses VS Code. It is free and widely used by professional programmers.

You may also hear the term IDE (integrated development environment). It means an editor that bundles extras such as a button to run your program. VS Code is an editor you can grow into an IDE by adding extensions. For now the difference does not matter. A later page, Set up your editor, installs VS Code and walks through your first file, so you do not need to install anything yet.

Recall: click each blank to check yourself

An is a program for writing code. An is an editor with extras, such as a button to your program.

The terminal: talking to your computer with text

You already use your computer through pictures. You open a folder by clicking its icon, and the files inside appear as more icons. A terminal lets you do the same kinds of things with words: open and look at files, make folders, run programs, and much more. It is a window where you control your computer by typing instead of clicking. You type a command, press Enter, and read the answer. Think of it as a text-based version of the windows you already know, instead of an icon-based one:

On the left, a point-and-click window shows a notes folder and two file icons. On the right, a terminal lists the same three names as text after the command ls. Both show the same folder.

Here is a real terminal after a slightly longer version of that command:

A terminal after typing ls -l. Three lines list hello.py, my_color.py and a folder called notes. The names on the right are highlighted. The columns before them are dimmed as details for later.

The ls is short for "list". The -l asks for the long version, with one line per file or folder. The names are on the right, and they are the part to look at. The columns before them (who may change the file, who owns it, its size and its date) are details you can ignore for now. Opening that folder in your file browser would show the same three things. The terminal is the text version.

The terminal is not magic. It is a conversation: you type, it replies. You will meet it properly in the next pages: first what a terminal is and where it came from, then practice with the commands in a terminal that cannot break anything.

Recall

What do you do in a terminal?

Show the answer

You control your computer by typing commands and reading the text it replies with.

The container: an optional professional habit

You may have heard programmers mention containers. A container is a small pre-set-up computer that runs inside your own, used by teams so every developer has the same tools and settings. This course does not use one: the uv tool you install in a moment does its job simply enough that a container would be extra work rather than help. Two appendix pages walk through containers for anyone who wants to see how they work: Why we use containers and Set up a container.

What you will set up

Over the next few pages you will take four steps. Each one has a purpose:

  1. Learn the terminal. Read what a terminal is and practice a handful of commands in practice terminals in your browser. The purpose: a terminal is how you will run your programs, so you want to be comfortable typing to your computer.
  2. Install a terminal on your own computer. On Mac and Linux you already have one. On Windows you install a small program called Git Bash so your terminal behaves the same way as the course examples: Install your terminal.
  3. Install Python with uv. You install one small tool called uv, and uv installs Python for you: Install Python with uv. The purpose: your code needs the Python interpreter on your computer, and uv is the quickest way to get it.
  4. Install VS Code and write your first Python file. VS Code is a code editor, the tool for writing .py files. The purpose: it is where you write your code, with colors and error-spotting to help.

The picture to keep in mind: VS Code is where you write your code, and the terminal is where you run it.

Next: What a terminal is.