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

来源:4-4 Python之for循环

慕前端4358410

2022-07-08 14:38

谢谢

写回答 关注

2回答

  • 慕勒43996907
    2022-07-15 11:38:37

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

     sum=0

     for x in L:

        sum=sum+x

    print(sum/5)


  • weixin_慕莱坞3215187
    2022-07-08 17:41:09

    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]]


    慕前端435...

    不是求平均成绩吗,而且需要用for循环

    2022-07-09 14:56:22

    共 1 条回复 >

Python3 入门教程(新版)

python3入门教程,让你快速入门并能编写简单的Python程序

154153 学习 · 1075 问题

查看课程

相似问题