15/19 Very Annoying


#1

class Triangle(object):
def init(self, angle1, angle2, angle3):
self.angle1. = angle1
self.angle2 = angle2
self.angle3 = angle3

INCORRECT

class Triangle(object):
def init(self, angle1, angle2, angle3):
angle1.self = angle1
angle2.self = angle2
angle3.self = angle3

CORRECT


#2

The second one is rather incorrect and the first one is correct


#3

Technically the second one seems to be incorrect...but strangely enough it works, and I have no idea why. Since it jumbles up what I know about classes, I won't use it (just put it in to get to the next section) but still!


#4

You're right.

I found that this does not work on exercise 15, but it works on exercise 16. Which is very strange.

class Triangle(object):
def init(self, angle1, angle2, angle3):
angle1.self = angle1
angle2.self = angle2
angle3.self = angle3


#5

in the 1st example where you say incorrect, could that be because of the period after self.angle1. <---


#6

The self.angle1. = angle 1 is the problem here.

It should be self.angle1 = angle1


#7

class Triangle(object):
def init(self,angle1,angle2,angle3):
self.angle1 = angle1
self.angle2 = angle2
selt.angle3 = angle3

what is issue in this code?


#8

In the last line of your code, you have "selt" instead of "self"
Also, make sure you have init done correctly, that's what I ran into trouble with.
Hope this helps. Happy Coding!


#9

These posts won't do underscores...:expressionless:


#10

init
you missed out underscores?_____________________