Created
January 29, 2021 10:56
-
-
Save switowski/74e224d7bbb625f93175fd0a09ff97b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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