projects
/
advent-of-code-2020.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixup day18 and add second part
[advent-of-code-2020.git]
/
day18
/
badmath.py
diff --git
a/day18/badmath.py
b/day18/badmath.py
index b7e6ddab1c2c7c7dd2f5d95537ab041a513259ff..9ebf20e1792faf81b27eac4ea42b0c6f5239869f 100755
(executable)
--- a/
day18/badmath.py
+++ b/
day18/badmath.py
@@
-62,11
+62,8
@@
def do_sum(parts):
return cur_total
total=0
-total2=0
for line in [line.rstrip() for line in open(filename, "r")]:
answer=do_sum(parse_sum(line))
total+=answer
print("Part 1 Total:", total)
-
-