Strange class | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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