Class Basics - 15/18


Returns error “Did you create a class with the name Triangle?”

I expect it to work but it does not and I cannot find out why.

class Trangle(object):
  def __init__(self, angle1, angle2, angle3):
    self.angle1 = angle1
    self.angle2 = angle2
    self.angle3 = angle3


Check the spelling on the class name


ARRRRRRRGGGGG!!! I spent so much time re-checking everything EXCEPT the class name. DUH! Sometimes you just need more eyes. Thanks, ninjamouse91


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