Skip to content

Commit 10afd33

Browse files
committed
Just adding the comments
1 parent 0f10857 commit 10afd33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

2022/21.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ def part2(data):
4242
data['root'][1] = '='
4343

4444
def get_monkey(name):
45-
if name == 'humn':
46-
return complex(0, 1)
45+
if name == 'humn': return complex(0, 1) # Change for part 2
4746
yells = data[name]
4847
if isinstance(yells, int): return yells
4948
mon1 = get_monkey(yells[0])
@@ -59,7 +58,7 @@ def get_monkey(name):
5958
case '/':
6059
return mon1 / mon2
6160
case '=':
62-
return mon1, mon2
61+
return mon1, mon2 # Change for part 2
6362

6463
out1, out2 = get_monkey('root')
6564
comp, norm = (out1, out2) if isinstance(out1, complex) else (out2, out1)

0 commit comments

Comments
 (0)