Question: Write a function to verify Exercise 2.4.7: given a list 1st of nonnegative integers, check that the corresponding geometric mean is less than or equal
Write a function to verify Exercise 2.4.7: given a list 1st of nonnegative integers, check that the corresponding geometric mean is less than or equal to the arithmetic mean. Note 1. Consistent indentation is important. See the footnote, or ask me for further details. Note 2. You may find that sum and prod are useful functions." def mean_check(1st): A function that takes a list of nonnegative real numbers and checks whether their geometric mean is less than or equal to their arithmetic mean. # do some stuff geom - ... arith = ... # return the answer return geom
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
