Package behaviour into functions, then bundle data and behaviour into classes.
10 lessons · about 6 hours · free
Once a program outgrows a single screen it needs structure. This course covers functions properly — parameters, defaults, arbitrary arguments, scope and lambdas — and then classes: instances, methods, inheritance, the dunder methods that make your objects behave like built-in ones, and dataclasses for when you only want somewhere to keep values.
Naming a piece of behaviour so it can be reused, tested and reasoned about on its own.
Classes bundle data with the behaviour that belongs to it, so both travel together.