Multiply a Column

Write a function prod_col(i,m)prod\_col(i, m) that receives the index ii of one column of a matrix of int’s mm and returns the product of all the integers in that column. 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 columns, we are guaranteed that 0i<n0 \leq i < n.

Observation

Observe that 0i<n0 \leq i < n implies that the rows of mm, if any, have that column and are hence nonempty, but nothing else.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T17:16:10.590Z

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