Question: Using python and while loop only, Write code that takes a two dimensional grid from the user, and a row and a column (both start

Using python and while loop only,

Write code that takes a two dimensional grid from the user, and a row and a column (both start at offset 0 in our grid). Return a new two dimensional list with that cell removed. For example, if the user enters the grid [ [3, 5, 3, 4], [3, 1, 5, 2], [3, 4, 1, 2] ] and the row 1 and column 2, your code would return the list [3, 5, 3, 4], [3, 1, 2], [3, 4, 1, 2] ]. You may not use any built-in functions/methods besides len() and .append(). Specifically, you may NOT use the remove() method.

Template:

def remove(grid, row, col): grid = grid row = row column = col #YOUR CODE GOES HERE (indented) return [] #END YOUR CODE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!