Class Basics - 15/18


#1

https://www.codecademy.com/courses/learn-python/lessons/introduction-to-classes/exercises/class-basics?action=lesson_resume

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



#2

Check the spelling on the class name


#3

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


#4

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