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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!