Convert data to floats and compute the arithmetic mean.
This runs faster than the mean() function and it always returns a float. The data may be a sequence or iterable. If the input dataset is empty, raises a StatisticsError.
>>> import statistics as st
>>> st.fmean([3.5, 4.0, 5.25])
The fmean() method is same as mean().For better understanding please visit my previous article.