CODING
ADVENTURE
0 / 12 completed

BEYOND THE BOOK

Understand the ideas.
Make the code your own.

Twelve short field notes for the questions that deserve more room than a story can give them. No experience assumed.

NEW TO ALL OF THIS?

Start with the idea.
Then try a little code.

Read What is a program?, then Syntax and Variables. Continue in order, or follow the concept links in any activity. History notes are optional detours.

Open Python playground ↗

FIELD NOTE 01

What is a computer program?

A program is a set of instructions a computer can carry out. An algorithm is the plan behind those instructions. Python is one language for expressing that plan.

Understand it →

FIELD NOTE 02

Python syntax: quotes, colons and indentation

Syntax means the rules for writing valid code. Python uses punctuation, keywords and indentation to make the structure of a program precise.

Understand it →

FIELD NOTE 03

Python variables: names, values and state

A variable is a name bound to a value. Assignment with = binds a name; it does not ask whether two things are equal.

Understand it →

FIELD NOTE 04

Python input, numbers and type conversion

The value 12 is a number; "12" is text. Types describe what kind of value you have and which operations make sense for it.

Understand it →

FIELD NOTE 05

Python if statements, comparisons and Booleans

A Boolean is either True or False. Conditions let a program choose which instructions to run using those values.

Understand it →

FIELD NOTE 06

Python for and while loops: repeat with a reason

A loop repeats a block of instructions. A for loop visits a sequence; a while loop repeats while a condition is true.

Understand it →

FIELD NOTE 07

Python functions: arguments and return values

A function is a named piece of reusable behaviour. Parameters name its inputs, and return hands a result back to the caller.

Understand it →

FIELD NOTE 08

Python lists and dictionaries: organise a case file

A list keeps items in order. A dictionary connects keys to values. Choose the structure that matches the question you want to ask.

Understand it →

FIELD NOTE 09

Python modules and imports: reuse a tool

A module groups reusable Python code. import makes that module available so your program can use its names.

Understand it →

FIELD NOTE 10

Bits, bytes and encoding: Python text explained

Representation is how information is written down. Hexadecimal and Base64 encode data; they do not make it secret.

Understand it →

FIELD NOTE 11

Python debugging: understand errors and fix mistakes

Debugging means finding and correcting the reason a program behaves differently from your intention. An error message is evidence you can use.

Understand it →

FIELD NOTE 12

Python history: origins, syntax and readable code

Programming languages are designed by people. Their syntax reflects choices about readability, expression and the jobs people want computers to do.

Understand it →

A few words you’ll meet

Algorithm
A step-by-step method for solving a problem.
Syntax
The rules for writing valid code.
Expression
Code that evaluates to a value, such as 2 + 3.
Statement
An instruction, such as assigning a value to a name.
State
The values a program currently remembers.
Interpreter
Software that runs a program written in a language such as Python.
Bug
A mistake that makes software behave unexpectedly.
Library
Reusable code that supplies tools for other programs.