分别输入某位同学的语文、数学、英语三科成绩,打印输出总分和平均分(结果保留一位小数),最高分和最低分.
max()内置函数求最大值
min()内置函数求最小值
输入:
80
90
90
输出:
260.0
86.7
90.0
80.0
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)))