0
I'm finding classes very difficult
why are underscores needed ? ex: __init__ , __add__
2 Réponses
+ 1
thanks !!!
0
Classes with a double underscore before and after the name are usually predefined classes that you can overwrite. Classes you create yourself however don't need the double underscore, but should usually start with a capital for each word.
Eg. class MyClass: