Magic / Dunder Methods in Python
Magic or dunder methods are special methods in Python OOPs that enrich your classes. It is also known as dunder methods. These methods are distinguished from other methods in a special way by using double underscore before and after the method name. This method allows instances of a class to interact with the built-in functions …