avg python list code example Example: python avg my_list = [1,2,3,4] import numpy as np print("mean = ", np.mean(my_list))