Write a function that receives the index of one column of a matrix of int’s 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 has columns, we are guaranteed that .
Observe that implies that the rows of , if any, have that column and are hence nonempty, but nothing else.
>>> prod_col(0, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 320 >>> prod_col(0, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) + prod_col(2, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 276 >>> prod_col(1, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 0