+ 1
The magic method part seriously needs more examples which explanation + add but what is the full ability of __add__ and others?
2 odpowiedzi
+ 2
jack froster is that a suggestion? If yes then you can send your suggestions at info@sololearn.com
+ 2
It is a large topic, you'd never be able to cram it in such a brief tutorial. Read for example here:
https://docs.python.org/3/reference/datamodel.html
The 'magic' about the methods is that they are called although you never (specifically) call them.
They are mainly meant to control the behavior of operators or the builtin functions on your selfmade type.