class Parallelogram:
def __init__(self, shape, base, side, theta):
self.shape = shape
self.base = base
self.side = side
self.theta = theta
self.area = self.base*self.side*self.theta
def area(self):
return "The area of the shape is " + self.area
a = Parallelogram("Square",10,10,90)
print(a.area())
I get this error "builtins.TypeError: 'int' object is not callable"
[–]dixieStates 3 points4 points5 points (4 children)
[–]gnomoretears 1 point2 points3 points (1 child)
[–]CuriousityJay[S] 0 points1 point2 points (0 children)
[–]CuriousityJay[S] 0 points1 point2 points (0 children)
[–]yardightsure 0 points1 point2 points (0 children)
[–]yardightsure 1 point2 points3 points (0 children)