For the main program, you should take the row and column lengths as input from the user and pass them as arguments into the function. You should then print the return value of the function. Example Input: 7 5 Output: [[' , 1 " Input: 21 1 1 '], [' '] [" '], [' נני '] ,[' '] ,[' '] ,[' '] ,[' '],[' '] ,[' '] ']] Output: [[' '], [' '], [' '], [' '], [' '], [' '], [' '], [' '], [' '], [' '], [' '], [' '] [' '], [' '],
Would correct please sure....For this r this lab, we will consider the nested list to contain the same number of elements in all of the inner lists thus making this sort of like a matrix. Hence, we will also use the row and column notation to represent matrices. •The outer nested list contains a list of length row_length and each element of this list is itself a list of length column_length. •The inner lists contain strings (a total of column_length strings), all of which are single space characters(' '). Check the assert statements and input/output examples to understand further. Both row_length and column_length will always be non-negative integers. You can use the assert statements to test that your function .
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images