Add back part 1
This commit is contained in:
parent
a28f74a505
commit
84470960d3
1 changed files with 2 additions and 1 deletions
|
|
@ -54,8 +54,9 @@ def common_chars(a, b):
|
|||
def main(filename):
|
||||
words = load_words(filename)
|
||||
print(f"Solutions for {filename}")
|
||||
print(f"Part 1: {checksum(words)}")
|
||||
a, b = find_ids(words)
|
||||
print(f"Part 1: {common_chars(a, b)}")
|
||||
print(f"Part 2: {common_chars(a, b)}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
for filename in sys.argv[1:]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue