Question: In python Implement a function that takes one parameter, which will be an array of strings. It converts the data into a 2d array of

In python

Implement a function that takes one parameter, which will be an array of strings. It converts the data into a 2d array of single characters. But its not as simple as just calling list() to convert each string in turn - we want to be able to access the elements of the array like this: grid = ... some_value = grid[x][y] In order for a 2d array to work this way, we have to use the first index to represent the x value, and the second to represent the y. This means that we must have organize our data into an array of columns. To understand this, lets use a small example of a 4x4 grid. (This problem will actually use 9x9 grids, but those are really annoying to draw!) Heres the grid, as you might print it out to the user: abcd .... x..y 1234

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!