Learn5 lessons
Python
The basics behind the syntax — mutability, scope, comprehensions, and the object model — not just how to write a for loop.
In this course
- Types, identity, and mutabilityis against ==, and why a list and a tuple behave so differently once you pass them around.7 min
- Functions, arguments, and *args / **kwargsPositional against keyword arguments, star-unpacking, and what a decorator actually is.7 min
- Lists, dicts, sets, and comprehensionsPicking the right container, and writing a comprehension that reads better than the loop it replaces.8 min
- Classes, __init__, and the attributes that surprise peopleInstance attributes against class attributes, and the mutable class attribute that behaves like a global.7 min
- Exceptions, and the with statement that always cleans uptry/except/else/finally in the order they actually run, and what a context manager guarantees.8 min