...

/

Exercise 1: Sum the rows of a matrix

Exercise 1: Sum the rows of a matrix

Write a code such that it calculates the sums of all the enteries in rows in a matrix.

Problem Statement

In this exercise, you are given a nested array:

numbers = [
  [1, 2, 3],
  [4, 5, 6],
 
...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy