1# Example to find average of list
2number_list = [45, 34, 10, 36, 12, 6, 80]
3avg = sum(number_list)/len(number_list)
4print("The average is ", round(avg,2))
5
1 avreage_cost = cost
2 avg = sum(avreage)/len(avreage)
3 print("The average amout you spent is ", round(avg,2))
1import numpy
2
3 avreage_1 = numpy.mean(avreage)# this finds the mean from the array "cost"
4 print("words are printed here if needed",avreage_1) # this prints the mean that was found above
5
6