+ 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

14th Feb 2018, 4:56 AM
rahim
rahim - avatar
1 Respuesta
+ 4
it is easy: __init__ has 4 underscores: two at the beginning and two at the end. The method is private
14th Feb 2018, 5:49 AM
Oma Falk
Oma Falk - avatar