Assignment averages

Write codeMedium13 min

Your task

A gradebook is a rectangular grid: scores[r][c] is student r's score (a non-negative integer) on assignment c. The grid is non-empty and every row has the same length. For the class summary, return a list with one integer per assignment (column): the floor of that column's average. Example: [[80, 90], [70, 100], [90, 95]] gives [80, 95] because floor(240/3) = 80 and floor(285/3) = 95.

Examples

assignment_averages(scores: list[list[int]]) -> list[int]
Example 1
Inputassignment_averages([[80, 90], [70, 100], [90, 95]])
Output[80, 95]