怎么输出一句完整的语句“平均成绩是:(某个数)”
先求平均值78.6,再输出一句“平均成绩是:78.6”,要怎么输出呢
# coding=UTF-8
L = [75, 92, 59, 68, 99]
sum=0.0
for ch in L:
sum=sum+ch
print(sum)
a=sum/5
s='平均值是:'
print(?)
先求平均值78.6,再输出一句“平均成绩是:78.6”,要怎么输出呢
# coding=UTF-8
L = [75, 92, 59, 68, 99]
sum=0.0
for ch in L:
sum=sum+ch
print(sum)
a=sum/5
s='平均值是:'
print(?)
2022-08-28
举报