Home /
Expert Answers /
Computer Science /
python-define-a-function-calc-pyramid-volume-with-parameters-base-length-base-width-and-pyramid-h-pa987
(Solved): Python
Define a function calc_pyramid_volume with parameters base_length, base_width, and pyramid_h ...
Python
Define a function calc_pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns as a number the volume of a pyramid with a rectangular base. Sample output with inputs: \( 4.52 .13 .0 \) Volume for \( 4.5,2.1,3.0 \) is: \( 9.45 \) Relevant geometry equations: Volume \( = \) base area \( \times \) height \( \times 1 / 3 \) Base area \( = \) base length \( x \) base width. \( 4251522802132 . q \times 329 y 7 \) 1 " "Your solution goes here "' 4 length = float(input()) 5 width = float(input()) 6 height \( = \) float \( ( \) input()) 7 print('Volume for', length, width, height, "is:", calc_pyramid_volume(length, width, height))