Class basics 15/18


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

#2

why do this two lines:

    self.angle1 = angle1
  	self.angle2 = angle2

have different indent(ion) level?


#3

i dont get it… they are the same


#4

they are not:

indention with tabs can be tricky


#5

this is what i see


#6

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


#7

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