Arrays · 16 / 23 Exercise Medium

Two-dimensional array

Objective

Create a Python program that asks the user for the scores of 10 students, divided into 2 groups of 5 students each. Store the scores in a list of lists (a two-dimensional list) and display the arithmetic mean (average) of each group of students.

Input
4
5
3
6
3
7
4
8
3
5
Output
The average for group 1 is 4.2
The average for group 2 is 5.4

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise