Write a function that receives the index of one row of a matrix of int’s 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 has rows, we are guaranteed that .
Observe that implies that the tuple is nonempty, but nothing else.
>>> prod_row(1, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 24 >>> prod_row(1, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) + prod_row(2, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 12124 >>> prod_row(0, ((8, 0, 2, -1), (4, 3, 2, 1), (10, 11, -11, -10))) 0