IN PYTHON. Write code that can be placed below the comment (# Write your code here) to complete the program. Use loops t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

IN PYTHON. Write code that can be placed below the comment (# Write your code here) to complete the program. Use loops t

Post by answerhappygod »

IN PYTHON. Write code that can be placed below the
comment (# Write your code here) to complete the program. Use loops to calculate
the sums and averages of each column of scores stored in the 2-dimensional list:
students so that when the program executes, the following output is displayed. Do
not change any other part of the code.
OUTPUT:
Average scores for tests:
Test # 1:16.0
Test # 2: 17.0
Test # 3 : 18.0
CODE:
students = [
[11, 12, 13],
[21, 22, 23]
]
avgs = []
# Write your code here:
print('Average scores for tests: ")
for i, avg in enumerate (avgs):
print('Test #', i + 1, ':', avg)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply