avrage python3 code example
Example 1: python average
# Using statistics package to find average
import statistics as st
my_list = [9, 3, 1, 5, 88, 22, 99]
print(st.mean(my_list))
Example 2: python mean
# Probably the most convenient set of statistics functions are found
# in the Numpy package
# Basic syntax:
import numpy as np
np.mean(your_list) # Calculate mean
np.median() # Calculate median
np.std() # Calculate standard deviation
np.var() # Calculate variance