what is the need for those magic methods that are being provided in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what is the need for those magic methods that are being provided in python

could anyone explain for me

26th Jun 2016, 7:56 AM
ishwarya lakshmi
2 Answers
+ 2
the magic methods are provided to do change some default behavior... like what to do in destructor, what should be printed for default print etc
26th Jun 2016, 4:46 PM
Anandaprakash S
+ 2
they are used to create your custom codes
27th Jun 2016, 1:52 AM
Madhav Srikantam
Madhav Srikantam - avatar