# Calculate the average, variance and standard deviation in Python using NumPy 
 # Python program to get average of a list
  
# Importing the NumPy module
import numpy as np
  
# Taking a list of elements
list = [2, 4, 4, 4, 5, 5, 7, 9]
  
# Calculating average using average()
print(np.average(list))