Skip to main content

The lab

Olav's notebook

Write real Python and help Olav with his sums from the farm. When something goes wrong, he explains what happened.

Olav explains · Chapter 1

A program is what you tell Python

A program is what you tell Python, written line by line. Python does them one after another, from the top down. The first one you learn is print: it prints what's inside the brackets, and it shows up under Output. Text goes in quotes, like "Hello". Numbers and sums don't.

Try also