15/19 Triangle?


#1





This pops out:
Oops, try again. Did you create a class with the name Triangle?
:smiley: I don't understand where is the problem


class Triangle(object):
def init(self,angle1,angle2,angle3):
self.angle1 = angle1
self.angle2 = angle2
selt.angle3 = angle3


#2

Hi, @systemninja21377 ,

Here ...

def init(self,angle1,angle2,angle3):

... the method should be named __init__.

Make sure that your indentation is correct.


#3

thanks, but it's already named that way


#4

Make sure that the header of the __init__ method is indented. The contents of that method block should be indented to an additional degree.

Also check the output console for error messages. This may help resolve the problem.


#5

#6

Check the spelling of all variables, such as self, in all lines of code within the __init__ method block.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.