8000 Update day1.py · mobluse/adventofcode2022@50f7d79 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50f7d79

Browse files
authored
Update day1.py
1 parent cc572ee commit 50f7d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

day1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/usr/bin/python
1+
#!/usr/local/bin/snek
22
# cat day1input.txt | ./day1.py
33
high1 = -1000
44
high2 = -2000
55
high3 = -3000
66
sum = 0
77
s = input()
88
while True:
9-
if s == '' or s == '.':
9+
if s == None or s == '' or s == '.':
1010
if sum > high1:
1111
high3 = high2
1212
high2 = high1

0 commit comments

Comments
 (0)
0