Dunder Methods
Magic Methods
Learning Outcomes
- The internal representation of classes
- Magic methods
- Difference between
__repr__
and__str__
- Operator overloading
Theory
Watch this video:
Knowledge Check
- How to adjust the internal functionality of classes?
- How to overload operators?
Additional Resources
- Dunder methods of Python operators