Please i need help, this code does not compute the area
------this is the output
# An object-oriented programming style to calculate area of triangle (1/2 base times height) import sys import math a = input("Enter the value of the first side:") b = input("Enter the value of the second side:") c = input("Enter the value of the third side:") class triangle(): def __init__(self,a,b,c): self.a = a self.b = b self.c = c def area(a, b, c): s=(a + b + c)/2 area=math.sqrt(s*(s-a)*(s-b)*(s-c)) return area print (area((a,b,c)))
------this is the output
Error:Enter the value of the first side:4
Enter the value of the second side:5
Enter the value of the third side:6
Traceback (most recent call last):
File "area2.py", line 17, in <module>
print (area((a,b,c)))
NameError: name 'area' is not defined