15/19 Class Basics - why is ver 1 acceptable ver2 not?


#1



https://www.codecademy.com/en/courses/python-intermediate-en-WL8e4/3/1?curriculum_id=4f89dab3d788890003000096

Both versions SHOULD look identical for the parser. Why are they not?


I expected both of them to pass.


#code version 1. Gets an error: Oops, try again. Did you create a class with the name Triangle?
class Triangle(object):
    def __init__(self, angle1, angle2, angle3):
        self.angle1 = angle1
        self.angle2 = angle3
        self.angle4 = angle4
        
#version 2. Passes.
class Triangle(object):
    def __init__(self, angle1, angle2, angle3):
        self.angle1= angle1
        self.angle2= angle2
        self.angle3= angle3

#2

Oh version 1 has a typo with angle numbers.