This commit is contained in:
@@ -53,6 +53,7 @@ def part_2(input):
|
|||||||
for d in dots:
|
for d in dots:
|
||||||
max_x = max(max_x, d[0] + 1)
|
max_x = max(max_x, d[0] + 1)
|
||||||
max_y = max(max_y, d[1] + 1)
|
max_y = max(max_y, d[1] + 1)
|
||||||
|
print("Part 2 result:")
|
||||||
for y in range(max_y):
|
for y in range(max_y):
|
||||||
for x in range(max_x):
|
for x in range(max_x):
|
||||||
if (x, y) in dots:
|
if (x, y) in dots:
|
||||||
@@ -60,7 +61,6 @@ def part_2(input):
|
|||||||
else:
|
else:
|
||||||
print(' ', end='')
|
print(' ', end='')
|
||||||
print()
|
print()
|
||||||
print("Part 2 result:", result)
|
|
||||||
|
|
||||||
|
|
||||||
input = list()
|
input = list()
|
||||||
|
|||||||
Reference in New Issue
Block a user