intermediate python lesson 4: Magic Methods and Polymorphism
What Are Magic Methods?
yt link
^ Magic Methods
Python provides tools for making our custom classes "act like" other built-in types.
If we have an instance object obj of a custom class, and Python needs to evaluate len(obj), Python will attempt to c...
philipdevblog.hashnode.dev2 min read