# coding:utf-8
# 使用列表对象保存课程及成绩
Chinese=[85,90,82,87,79,83,93,65,88,92]
Math=[93,95,88,86,99,76,84,92,90,91]
English=[95,83,90,93,80,83,97,90,91,96]
Physics=[80,72,90,84,84,65,76,95,93,96]
Chemistry=[89,95,93,76,86,67,78,96,89,97]
Biology=[90,96,86,90,76,70,65,94,97,93]
# 定义函数, 传名字&科目, 格式化输出
def puts(name, subject):
print('%s平均成绩: %.2f分, 最高分:%d, 最低分:%d分' %(name, float(sum(subject))/ float(len(subject)),max(subject), min(subject)))
# 调用函数
puts('语文', Chinese)
puts('数学', Math)
puts('英语', English)
puts('物理', Physics)
puts('化学', Chemistry)
puts('生物', Biology)