Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started