Skip to content

Commit 5f5fd9e

Browse files
committed
cosmetics
1 parent f299022 commit 5f5fd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2023/day08/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def load_data(filename):
1717

1818
def walk(node, end):
1919
def next_node(node, instruction):
20-
return maps[node][{"L": 0, "R": 1}[instruction]]
20+
return maps[node][instruction == 'R']
2121
steps = 0
2222
while not end(node):
2323
for i in instructions:

0 commit comments

Comments
 (0)