Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# Import statistics Library import statistics # Calculate harmonic mean print(statistics.harmonic_mean([40, 60, 80])) print(statistics.harmonic_mean([10, 30, 50, 70, 90]))
55.38461538461538
27.97513321492007