Skip to content
HopperHopper

Course navigation

Self-paced course · Complete

Learn Python in 25 Days

One hour a day from installing Python to a small, tested, working program.

phases
5
days
25
hours of study
~30
Python examples
908

About the course

This course takes you from installing Python to a small, tested program you built yourself, one hour a day for 25 days. It assumes you have never programmed before. Each day teaches its ideas from the beginning, with examples you can download and run, practice with worked answers, and printable PDFs with or without answers.

How to use it

Block Time What you do
Review 5 min Reread yesterday’s code and retype one example from memory
Learn 25 min Work through the day’s page, typing every example as you go
Practice 25 min Do the day’s practice exercises in a .py file
Recap 5 min Write two or three sentences: what you learned and what confused you
  • Type the code instead of copying and pasting it.
  • Predict what each example prints before you run it.
  • Keep each day’s work in its own folder (day01, day02, and so on) so you can look back.
  • If a day runs long, stop at an hour and finish the leftover exercise in the next day’s review time.

You need Python 3.12 or newer and a code editor such as VS Code. Day 1 walks you through setting them up.

5 phases · 25 days

Phases

Phase 1

Foundations

Write and run your first programs with numbers, text, decisions, and loops.

  • ~5 hours of study
  • 5 days
Show days
  1. Day 1 Setup and your first program
  2. Day 2 Variables, numbers and basic types
  3. Day 3 Strings
  4. Day 4 Making decisions
  5. Day 5 Loops

Phase 2

Data and functions

Organize data in lists, tuples, sets, and dictionaries, organize code in functions, and build a to-do list manager.

  • ~9 hours of study
  • 7 days
Show days
  1. Day 6 Lists
  2. Day 7 Tuples, sets and unpacking
  3. Day 8 Dictionaries
  4. Day 9 Functions, part 1
  5. Day 10 Functions, part 2
  6. Day 11 Comprehensions and iteration tools
  7. Day 12 Checkpoint project 1

Phase 3

Real programs

Split programs into modules, keep data in files, handle errors, and model things with classes.

  • ~7 hours of study
  • 5 days
Show days
  1. Day 13 Modules, packages and environments
  2. Day 14 Files and data formats
  3. Day 15 Errors and exceptions
  4. Day 16 Classes and objects, part 1
  5. Day 17 Classes and objects, part 2

Phase 4

Professional habits

Write code other people can trust with generators, type hints, tests, the standard library, and web data.

  • ~7 hours of study
  • 5 days
Show days
  1. Day 18 Iterators, generators and decorators
  2. Day 19 Type hints and code style
  3. Day 20 Testing and debugging
  4. Day 21 Standard library deep dive
  5. Day 22 Working with web data

Phase 5

Capstone

Plan, build, and polish a project of your own over three days.

  • ~3 hours of study
  • 3 days
Show days
  1. Day 23 Plan and scaffold
  2. Day 24 Build
  3. Day 25 Polish and reflect