A recursive function column2list_rec ( grid , n ), where grid is a list of lists and
Fantastic news! We've Found the answer you've been seeking!
Question:
A recursive function column2list_rec(grid, n), where grid is a list of lists and n is an integer, that returns a list consisting of the element at position n of each row of grid. No for or while loops
[ [ 'aa', 'bb', 'cc', 'dd' ], [ 'ee', 'ff', 'gg', 'hh', 'ii', 'jj' ], [ 'kk', 'll', 'mm', 'nn' ] ]
- column2list_rec(x,3) return value: ['dd', 'hh', 'nn' ]
Related Book For
Managerial Economics
ISBN: 978-1118808948
8th edition
Authors: William F. Samuelson, Stephen G. Marks
Posted Date: