My doubt is – Are these names reserved in python ,like eq , also what we are doing in eq in this particular example can be implemented using any self defined functions then why we are actually using these dunders ?
Dunders or Magic functions
hey @ChiteshBansal,
these are all functions only.
you can make them on your own also.
But to reduce your coding part and provide more functionality developers have already made such of them .
and also , if you make any custom function that is not a predefined dunder.
for example if you make it like def equal(b)
Then you would require to call it as a.equal(something)
and not a == b
.
This is what is the functionalty.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.