What are dunder methods?
Object-oriented programming
Audio flashcard · 0:18Nortren·
What are dunder methods?
0:18
Dunder methods, short for double-underscore methods, are special methods recognized by Python that define how objects respond to built-in operations. Examples include dunder add for the plus operator, dunder len for the len function, and dunder str for string conversion. They are also called magic methods.
docs.python.org