Skip to content

Instantly share code, notes, and snippets.

@switowski
Created January 29, 2021 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save switowski/74e224d7bbb625f93175fd0a09ff97b8 to your computer and use it in GitHub Desktop.
Save switowski/74e224d7bbb625f93175fd0a09ff97b8 to your computer and use it in GitHub Desktop.
In [3]: %xmode
Exception reporting mode: Plain
In [4]: solve()
Traceback (most recent call last):
File "<ipython-input-6-6f300b4f5987>", line 1, in <module>
solve()
File "/Users/switowski/workspace/iac/solver.py", line 27, in solve
sol_part1 = part1(vals)
File "/Users/switowski/workspace/iac/solver.py", line 16, in part1
return count_trees(vals, 3, 1)
File "/Users/switowski/workspace/iac/solver.py", line 11, in count_trees
if vals[y][x] == "#":
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment