0
What is the advantage or practical use of "magic" words in python?
My doubts are... you can use any word to call it, e.g. 'aaa', and futhermore you can designate any action inside it, even a contradiction, e.g.__add__ can substract! The only difference I understand so far is that these subfuntion has to precide by extra __init__ piece of code.
3 odpowiedzi
+ 1
overloading and custom classes, that arent used to interacting with eachother
0
Thanks for the answer, but would you mind explaining that a bit more.
0
No need, look at this code. Let me know if you need a more in depth explination
https://code.sololearn.com/c7cBU52EpJ58/?ref=app