#sample solution
class Triangle(object):
def __init__(self, angle1, angle2, angle3):
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
newTriangle = Triangle(30,60,90)
print newTriangle.angle1
print newTriangle.angle2
print newTriangle.angle3
No comments:
Post a Comment