Return the harmonic mean of data, a sequence or iterable of real-valued numbers. If weights is omitted or None, then equal weighting is assumed.
statistics.harmonic_mean(data, weights=None)
>>> harmonic_mean([40, 60])
48.0
>>> harmonic_mean([40, 60], weights=[5, 30])
56.0