Skip to content

Commit e13e490

Browse files
committed
Removed unused list comprehension variable name
1 parent 0266c0d commit e13e490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advent2020/day11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def count_adjacent_filled_seats(grid, row, col, search_lim):
5151

5252
def run_seat_simulation(seat_grid, search_lim, vacate_threshold):
5353
grid1 = [[cell for cell in row] for row in seat_grid]
54-
grid2 = [['X' for col in row] for row in grid1]
54+
grid2 = [['X' for _ in row] for row in grid1]
5555
while grid1 != grid2:
5656
for row in range(len(grid1)):
5757
for col in range(len(grid1[0])):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy