Question: - what it does - how it works - the data structure(s) it uses - other insights that's been discovered File: exampleGrid2 py Author: Derrf
- how it works
- the data structure(s) it uses
- other insights that's been discovered
File: exampleGrid2 py Author: Derrf Seitz This example uses the Grid class to demonstrate row/column positions. """ from grid import Grid g= Grid(5,7,0) \# rows, columns, fill value for row in range(g.getHeight()): for col in range(g.getWidth()) : g[row][col] = (row, col) \# a tuple print("5 x 7 grid of tuples showing (row, column) positions: ") print(g)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
