为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

2 回答

 L=[75,92,59,68,99]

 sum=0

 for x in L:

    sum=sum+x

print(sum/5)


0 回复 有任何疑惑可以回复我~

lice_scores = [100, 89, 92]

bob_scores = [70, 65, 81]

candy_scores = [88, 72, 77]

all_scores = [alice_scores, bob_scores, candy_scores]

print(all_scores) # ==> [[100, 89, 92], [70, 65, 81], [88, 72, 77]]

alice_scores = [100, 89, 92]

bob_scores = [70, 65, 81]

candy_scores = [88, 72, 77]

all_scores = [alice_scores, bob_scores, candy_scores]

print(all_scores) # ==> [[100, 89, 92], [70, 65, 81], [88, 72, 77]]


0 回复 有任何疑惑可以回复我~
#1

慕前端4358410 提问者

不是求平均成绩吗,而且需要用for循环
2022-07-09 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

想看看这一章节的任务的完整程式

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信