Question: Create a program that contains the following two functions: def isValid(side1, side2, side3): #Returns true if the sum of any two sides is greater than
Create a program that contains the following two functions:
def isValid(side1, side2, side3):
#Returns true if the sum of any two sides is greater than the third side.
def area(side1, side2, side3):
#Returns the area of the triangle
Write a main program that reads the three sides for a triangle and computes the area of the triangle if the input is valid. Otherwise, it displays that the input is invalid. The formula for computing the area of a triangle is s = (side1 + side2 + side3) / 2 area = s(s side1) (s side2)(s side3)
Remember to put clear and informative directions and results for the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
