+ 1
magic method
in python when we use any magic method and define it usually we use two argument self and other, can we take three or more argument there
1 Odpowiedź
0
As in sololearn it specified as "self" as class reference and "other" as other argument.There is no need to be the names are must be "self" or "other". We can use our own custom names.
And in your question Yes we can use any arguments with any name inside a magic method