geometric_mean |
| statistics.geometric_mean(data) |
Returns test |
| data | ?? |
| REMARKS |
| * Convert data to floats and compute the geometric mean. * The geometric mean indicates the central tendency or typical value of the data using the product of the values (as opposed to the arithmetic mean which uses their sum). * Raises a StatisticsError if the input dataset is empty, if it contains a zero, or if it contains a negative value. The data may be a sequence or iterable. * You can use the round function to |
import statistics
my_number = geometric_mean([54, 24, 36])
print(my_number) #= ??
my_number = round(geometric_mean([54, 24, 36]), 1)
print(my_number) #= 36
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top