Free Python lessons · Updated for Python 3.12 · No install required to start reading
🐍
Python Tutorials

Learn Python at your own pace

Structured tutorials from your first print() to data handling, object-oriented code, and small real-world projects. Written for beginners, useful as a refresher for experienced developers.

48 lessons
12 hours
3 tracks
hello.py
# Your first Python program
def greet(name):
    return f"Hello, {name}!"

for person in ["Ada", "Guido", "you"]:
    print(greet(person))

Choose a track

Follow a path or jump to any lesson — everything stays free.

Beginner

Python fundamentals

Syntax, types, control flow, functions, and the standard library essentials.

Intermediate

Working with data

Files, JSON, CSV, list comprehensions, exceptions, and modules.

Projects

Build something

CLI tools, simple web scrapers, and automation scripts step by step.

Latest lessons

Sign in to save progress and unlock practice exercises.

Lesson 1

Getting started with Python

Install Python, use the REPL, and run your first script.

8 min
Beginner
Lesson 2

Variables and types

Numbers, strings, booleans, and f-strings.

12 min
Beginner
Lesson 3

Control flow

if/else, for, and while loops.

15 min
Beginner
Lesson 4

Functions and modules

Define functions, import modules, and read docstrings.

14 min
Beginner
Lesson 5

Lists and dictionaries

Indexing, slicing, and common collection patterns.

18 min
Beginner
Lesson 6

Reading and writing files

Text files, context managers, and path handling.

16 min
Intermediate
Lesson 7

Errors and exceptions

try/except, raising errors, and debugging tips.

13 min
Intermediate
Lesson 8

Intro to classes

Objects, attributes, methods, and __init__.

20 min
Intermediate

Frequently asked questions

Do I need prior programming experience?

No. The Basics track assumes zero knowledge and builds up gradually with examples you can run locally.

Which Python version do you teach?

Examples target Python 3.10+ (tested on 3.12). We note differences when they matter for beginners.

Is content really free?

Yes. All lessons are free to read. Create an account to track progress and access member exercises.