Bit by Bit
← All courses
Start Here · Beginner

How Computers Work

Open the box. See how a machine made of switches stores numbers, text and pictures, makes decisions, and runs a program. You will flip bits, wire logic gates and run your first lines of code.

4 lessons25 minutesFree
Start this course →

Lessons

  1. 1Hardware and softwareName the main parts of any computer and what each one does.5 min
  2. 2Everything is a numberRead binary, and see how text and pictures become numbers.7 min
  3. 3Logic gates: thinking with switchesCombine switches into gates, and gates into arithmetic.6 min
  4. 4How a program runsFollow a program from human-readable code to the processor, then run your own.7 min

What you will learn

Terms explained in this course

hardware
The physical parts of a computer that you can touch: the chips, the screen, the keyboard.
software
The programs that tell the hardware what to do. You cannot touch software, only run it.
processor
The chip that carries out instructions. It is the part that does the actual computing. Also called the CPU (central processing unit).
memory
Fast, temporary working space for whatever the computer is doing right now. It is emptied when the power goes off. Also called RAM.
storage
Long-term space where files and programs are kept, even when the power is off.
operating system
The software that manages the hardware and lets other programs run, such as Windows, Android, iOS or Linux.
input
Anything that goes into a computer, such as a key press, a tap, a photo or a sound.
output
Anything a computer gives back, such as a picture on the screen, a sound or a printed page.
bit
The smallest piece of information: a single 0 or 1.
byte
A group of eight bits. One byte can hold any number from 0 to 255.
binary
A way of writing numbers using only the digits 0 and 1.
character encoding
An agreed table that gives every letter and symbol a number, so that text can be stored as numbers. ASCII and Unicode are the best known.
pixel
One tiny dot of colour in a picture or on a screen.
transistor
A microscopic electronic switch with no moving parts. It is either on (1) or off (0).
logic gate
A small circuit, built from transistors, that takes one or two bits in and gives one bit out according to a fixed rule.
truth table
A table listing every possible input to a logic gate together with the output it gives.
instruction
One very small command that a processor can carry out, such as "add these two numbers".
machine code
Instructions written as binary numbers, the only language a processor understands directly.
programming language
A language that people can read and write, such as Python, which is translated into machine code for the processor.
fetch-decode-execute cycle
The three steps a processor repeats without end: fetch the next instruction, decode what it means, execute it.
Python
A popular programming language known for being easy to read. It is the main language of AI.