Class basics 15/18

class Triangle(object):
  def __init__(self, angle1, angle2, angle3):
    self.angle1 = angle1
  	self.angle2 = angle2
    self.angle3 = angle3
doesnt work


why do this two lines:

    self.angle1 = angle1
  	self.angle2 = angle2

have different indent(ion) level?


i dont get it… they are the same


they are not:

indention with tabs can be tricky


this is what i see


we had a similair issue with someone yesterday, what i see is correct, and consistent with the error message. you will have to re-indent part of your code


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