courses / python

learn python

Three levels, from never written code to writing it like a professional. Readable, powerful and famously beginner-friendly.

write python like a professional.

For people who build things on their own and want code that others trust and can change.

1 unit 1 Smarter loops Build, filter and stream data in a line or two. 0 of 4 · 46 min
  1. Lists in one line10 min
  2. Dictionaries and sets in one line11 min
  3. What a for loop really does12 min
  4. Generators13 min
2 unit 2 Functions about functions Pass functions around, wrap them and give them a memory. 0 of 4 · 49 min
  1. Functions are values11 min
  2. Any number of arguments12 min
  3. Functions that remember12 min
  4. Decorators14 min
3 unit 3 Shapes and clean-up Describe your data clearly and always tidy up after yourself. 0 of 4 · 47 min
  1. Inside the with statement12 min
  2. Context managers from a generator12 min
  3. Type hints11 min
  4. Dataclasses12 min
4 unit 4 Work smarter Use Python's toolbox, and make your code fast where it matters. 0 of 4 · 46 min
  1. The itertools toolbox11 min
  2. Counting steps12 min
  3. Choosing the right structure12 min
  4. Remembering answers11 min
5 unit 5 Waiting well Wait for slow things without wasting time, and survive when they fail. 0 of 4 · 49 min
  1. Coroutines12 min
  2. Doing things at the same time12 min
  3. Tasks12 min
  4. When waiting goes wrong13 min
6 unit 6 Programs and tests Give programs a front door and options, and test them properly. 0 of 4 · 48 min
  1. Programs with a front door10 min
  2. Command-line arguments12 min
  3. Testing well13 min
  4. Fakes with unittest.mock13 min
7 unit 7 Safe and shipped Guard your program's edges, keep secrets secret and ship a real tool. 0 of 4 · 48 min
  1. Checking input at the door12 min
  2. Secrets10 min
  3. Failing politely11 min
  4. Shipping a tool15 min
end of level 3 level check Build one small project with everything from this level. Pass it and your face levels up. see the check