February 2024
Beginner
352 pages
8h 16m
English
In Exercise 44 you learned how to use a function to create special dict containers with functions attached to them. In this exercise you’ll learn the “right” way to do the same thing using Python’s class keyword and the object-oriented programming (OOP) features.
OOP is very complicated to understand and explain, so we’ll focus on code to start and slowly build up your understanding of the concept. The most important thing for you to remember when studying this is that OOP is weird. Humans don’t think about the world like this, and most of the theory behind OOP has been debunked by modern psychology and neurology. This means you need to keep grinding OOP code until you get it. It just takes time ...
Read now
Unlock full access