分别输入某位同学的语文、数学、英语三科成绩,打印输出总分和平均分(结果保留一位小数),最高分和最低分.
max()内置函数求最大值
min()内置函数求最小值
score = list(map(int,input().split()))
print("总分:{:.1f}".format(sum(score)))
print("平均分:{:.1f}".format(sum(score)/3))
print("最高分:{:.1f}".format(max(score)))
print("最低分:{:.1f}".format(min(score)))