Question: Expected Behavior Write a function column 2 list ( grid , n ) , where grid is a list of lists and n is an
Expected Behavior
Write a function columnlistgrid 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.
You can assume that n lenr for each row ie element of grid.
Examples
In the examples below, x is assumed to be the following list of lists:
aabbccdd
eeffgghhiijj
kkllmmnn
columnlistx
return value: ddhhnn
columnlistx
return value: aaeekk
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
