Python Core
From your first program to strings, lists, dicts, functions, classes, exceptions, generators and a final project.
Tests check every exercise: in your browser and in the cloud
Exercises run and are checked right in the browser, so you need nothing installed to take the course. To run the lesson examples on your own computer, set it up in two steps.
Install Python
The lessons use Python 3.12 or newer.
- Download the installer for your system from python.org/downloads and run it.
- The setup guide covers Windows, macOS and Linux.
Install VS Code
Download VS Code and add the Python extension from Microsoft.
Syllabus
- Classes and objectsTheory
- Quiz — two instancesQuiz
- __str__, __repr__ and __eq__Theory
- Quiz — __str__ and __repr__Quiz
- Class attributesTheory
- Quiz — class and instance attributesQuiz
- Inheritance and super()Theory
- Quiz — super()Quiz
- Data classesTheory
- Exercise: bank accountExercise
- Exercise: shape areasExercise