<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Not stuck tho.
<In what way does your code behave incorrectly? Include ALL error messages.>
Interpreter returns none, I get a message that says “Oops, try again. It looks like your check_angles method doesn’t return True for valid triangle angle values.”
<What do you expect to happen instead?>
I expected the if statement to return true if given any number of arguments that sum up to three. Although it’s supposed to be a triangle, so this isn’t ideal, but still. Is manually typing angle1+angle2+angle3 the only way to do that? It sort of looks clumsy.
class Triangle(object): number_of_sides=3 def __init__(self, angle1, angle2, angle3): pass def check_angles(self, *args): if sum(args)==180: return True else: return False