Fix day 13 part 2 output
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -50,8 +50,8 @@ def part_2(input):
|
|||||||
max_x = max([x for x, _ in dots])
|
max_x = max([x for x, _ in dots])
|
||||||
max_y = max([y for _, y in dots])
|
max_y = max([y for _, y in dots])
|
||||||
print("Part 2 result:")
|
print("Part 2 result:")
|
||||||
for y in range(max_y):
|
for y in range(max_y + 1):
|
||||||
for x in range(max_x):
|
for x in range(max_x + 1):
|
||||||
if (x, y) in dots:
|
if (x, y) in dots:
|
||||||
print('█', end='')
|
print('█', end='')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user