Multiply a Row

Write a function prod_row(i,m)prod\_row(i, m) that receives the index ii of one row of a matrix of int’s mm and returns the product of all the integers in that row. The matrix of int’s is represented as a tuple of rows, each row being, in turn, a tuple of int’s. If mm has nn rows, we are guaranteed that 0i<n0 \leq i < n.

Observation

Observe that 0i<n0 \leq i < n implies that the tuple mm is nonempty, but nothing else.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T15:23:23.395Z

© Jutge.org, 2006–2026.
https://jutge.org