New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Strange class
This code is a question in one of python challenge’s of SoloLearn but I think it is wrong and raises TypeError. Could someone explain it for me? https://code.sololearn.com/c4ZVw3odrHe0/?ref=app
1 Answer
+ 4
it is easy:
__init__ has 4 underscores:
two at the beginning and two at the end.
The method is private