Skip to main content

The university

Code

Learn Python with Olav, or build programs of your own. Real Python, with an editor and a console, right in the browser.

Your code stays on this machine. Nothing you type is sent to us.

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 in the console. Text goes in quotes, like "Hello". Numbers and sums don't.

The program is in the editor. Press Run, and see what it writes in the console.

Try also