Question: Write a function area (t) to calculate and return the area A= h(a+b)/2 of a trapezoid as shown below! a h d b Your function

Write a function area (t) to calculate and return the area A= h(a+b)/2 of a trapezoid as shown below! a h d b Your function should accept the values a, b, has a single tuple t . Use the docstring ""Calculates the area of a trapezoid with bases a, b and height h""" Do not change the main program. Expected result: Result = 75.0 Give me a hint 1... 3 # Main program (do not change): 4 tr = (20, 10, 5) 5 a = area (tr) 6 print ("Result =", a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
