As you did NOT us an indentation with your
the definition is NOT seen by the PYTHON interpreter
as being part of the
class Triangle definition.
thus you will have to use
def __init__(self, angle1, angle2, angle3):
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
nombre_de_cotes = 3
if self.angle1 + self.angle2 + self.angle3 == 180:
mon_triangle = Triangle(90, 30, 60)
It might be that you have to do a refresh Browser
++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
Therefor it is of an advantage to know that you have 2 reset facilities:
One is the use of the F5-key which does a refresh Browser
Two, select© your code
Then use the Reset Code button of the course-window,
then paste your code back in.
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom