How to use this page
Python Lab

Choose a tutorial, read the worked examples, run the code and complete the practice tasks. Some tutorials require premium access.

Open user guide

LEARN · PYTHON LAB

Learn Python in your browser

10 guided lessons, 20 coding exercises and a notebook-style workspace. Free for verified subscribers.

LESSON 1

Getting Started with Python

Run your first Python statements and learn how notebook-style cells work.

LESSON 2

Variables and Data Types

Store values using variables and distinguish common Python data types.

LESSON 3

Operators and Expressions

Perform calculations and comparisons using Python operators.

LESSON 4

Input and Formatted Output

Accept input, format output, and understand numerical precision and rounding.

LESSON 5

Conditional Statements

Use if, elif, and else to make decisions in a program.

LESSON 6

Loops

Repeat actions efficiently using for and while loops.

LESSON 7

Lists, Tuples, and Sets

Organize multiple values with common Python collection types.

LESSON 8

Dictionaries

Represent key-value data and iterate through structured records.

LESSON 9

Functions

Package reusable logic into functions with parameters and return values.

LESSON 10

Mini Project: Student Score Summary

Combine variables, collections, loops, conditionals, and functions in one small program.