+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

2/14/2018 4:56:51 AM

rahim

2 Answers

New Answer

+4

it is easy: __init__ has 4 underscores: two at the beginning and two at the end. The method is private

-3

Python is my least favorite for a reason: ERRORS. I think you are forgetting the python version of int main() or whatever.