IN PYTHON! Examine the incomplete program below. Write code that can be placed below the
comment (# Write your code here) to complete the program. Use loops to calculate
the sum and average of all 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:
Sum of all scores = 132
Average score = 22.0
CODE:
students =
[11, 12, 13],
[31, 32, 33]
]
tot = 0
avg = 0
# Write your code here:
print('Sum of all scores =' tot)
print('Average score
=', avg)
IN PYTHON! Examine the incomplete program below. Write code that can be placed below the comment (# Write your code here
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
IN PYTHON! Examine the incomplete program below. Write code that can be placed below the comment (# Write your code here
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!