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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy