📜  python代码示例中列表元素的平均值

📅  最后修改于: 2022-03-11 14:45:17.076000             🧑  作者: Mango

代码示例1
# Example to find average of list
number_list = [45, 34, 10, 36, 12, 6, 80]
avg = sum(number_list)/len(number_list)
print("The average is ", round(avg,2))