TIL: "Double Underscores" have a name - Dunder 😂

Sandeep Panda

·

·

720 views

How many times have you encountered names like __init__, __test__, __doTask___ and so on? These are called Dunders or Double Underscores and are commonly used for operator overloading.

More details here: https://www.geeksforgeeks.org/dunder-magic-methods-python/

Although I have been coding actively for last 6 years, I never knew there is something called Dunder. 😂

5 comments
Add a comment