OBS! Fönstret är för smalt för att använda pythonlabbet.se. Använd en enhet med tangentbord!

Learn to program in Python

Welcome to pythonlabbet.se!

You are not logged in.

Pythonlabbet works best when logged in. That said, feel free to take a look around.

Pythonlabbet is an interactive programming textbook

Here you can learn to program in Python without installing anything.
All you need is a web browser and internet.

Courses for beginners

All courses

How to use Pythonlabbet

It is important that you use a device with a keyboard.
You cannot program properly without a real keyboard!

In the sections, the text and tasks are most important. The video clips should be seen as a complement.

On the problem solving page you can test what you have learned. It is recommended to learn the basics in part 1 first.

For teachers

Verified teachers get access to functionality that is useful when working with a class.

A teacher can quickly and easily create student accounts for an entire class that are linked to the teacher. The teacher also gets an overview of how the students are doing and can review and comment on students' solutions and more.

Read more about teacher account

Inspired by PRIMM and UMC

PRIMM1 (Predict Run Investigate Modify Make) and UMC2 (Use Modify Create) are two models for teaching programming. Both aim to prevent the student from writing code directly. Instead, the student should start by reading code in pre-written programs, testing them and perhaps trying to predict what they do. Later, the student gets to modify existing code and then does not have to take responsibility for the code being correct. Finally, the student writes their own code.

  1. 1. Teachers' Experiences of using PRIMM to Teach Programming in School - Sue Sentance et al.
  2. 2. Use, Modify, Create: Comparing Computational Thinking Lesson Progressions for STEM Classes - Nicholas Lytle et al.