Course

Python

Learn Python from zero in 30 short lessons. Write your first program, master lists and functions, understand classes, then build a command-line task manager that saves real data.

  • 30 lessons
  • 6 modules
  • Beginner
  • 3 h 40 min
  1. Module 1

    Fundamentals

    Install Python, store values in variables, work with text and numbers, and read your first error message without panicking.

    5 lessons, about 31 min

    1. Install Python and run your first program 6 min
    2. Variables and the four basic types 6 min
    3. Strings, f-strings and reading input 7 min
    4. Numbers, operators and rounding that makes sense 6 min
    5. Read Python errors without panicking 6 min
  2. Module 2

    Control Flow

    Make decisions with if and else, repeat work with for and while loops, and finish with a small guessing game.

    5 lessons, about 33 min

    1. Make decisions with if, elif and else 6 min
    2. Comparisons, and, or and not 6 min
    3. Repeat work with for loops and range 7 min
    4. While loops, break and continue 7 min
    5. Build a number guessing game 7 min
  3. Module 3

    Data Structures

    Lists, dictionaries, tuples and sets: store groups of values, choose the right container, and keep nested data readable.

    5 lessons, about 37 min

    1. Lists: many values in one place 7 min
    2. List methods that do the work 7 min
    3. Dictionaries: values with names 8 min
    4. Tuples and sets: fixed records and uniqueness 7 min
    5. Nested data: records inside collections 8 min
  4. Module 4

    Functions and Modules

    Break a program into named functions, pass values in and out, use the standard library, and handle errors instead of crashing.

    5 lessons, about 38 min

    1. Functions: give a job a name 7 min
    2. Parameters, defaults and multiple returns 8 min
    3. Scope: where names live 7 min
    4. The standard library: maths, dates and randomness 8 min
    5. Handle errors with try and except 8 min
  5. Module 5

    Object-Oriented Python

    Classes, objects, attributes and inheritance, explained with everyday examples and a small bank account exercise.

    5 lessons, about 40 min

    1. Classes and objects: data with behaviour 8 min
    2. __init__, self and shared state 8 min
    3. Methods, properties and validation 8 min
    4. Inheritance and super() 8 min
    5. Project: a bank account with a history 8 min
  6. Module 6

    Real-World Python

    Files, JSON, command-line arguments and a capstone task manager you can actually use to track your own work.

    5 lessons, about 41 min

    1. Read and write files safely 8 min
    2. JSON: structured data that survives 8 min
    3. Command-line arguments with argparse 8 min
    4. Project structure: modules and imports 8 min
    5. Capstone: a task manager that remembers 9 min

Check what stuck

One quiz per module, with an explanation after every answer.

Other tracks

Java

23 lessons · Beginner

NEW