Skip to content

Commit 5bdf1b3

Browse files
Neha PeddintiNeha Peddinti
authored andcommitted
Modify random_grid solution
1 parent ac67a5a commit 5bdf1b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2_intermediate/chapter10/solutions/random_grid.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
)
5151

5252
# Display the grid without knowing the size beforehand.
53-
for row in range(len(grid)):
54-
for col in range(len(grid[row])):
55-
print(grid[row][col], end="")
53+
for row in grid:
54+
for col in row:
55+
print(col, end="")
5656
print()

0 commit comments

Comments
 (0)