mirror of
https://github.com/thib8956/advent-of-code.git
synced 2026-11-27 00:46:34 +00:00
fix lint
This commit is contained in:
1 parent
0232b9326d
commit
5c3fb89870
50 files changed
+97
-117
No files matched your search
@@ -17,7 +17,7 @@ def main(lines):
|
||||
c = Counter(line)
|
||||
total_twice += 1 if [k for k,v in c.items() if v == 2] != [] else 0
|
||||
total_thrice += 1 if [k for k,v in c.items() if v == 3] != [] else 0
|
||||
print(f"Part 1: ", total_twice * total_thrice)
|
||||
print("Part 1: ", total_twice * total_thrice)
|
||||
|
||||
part2(lines)
|
||||
|
||||
@@ -26,5 +26,5 @@ if __name__ == "__main__":
|
||||
import sys
|
||||
infile = sys.argv[1] if len(sys.argv) > 1 else "example.txt"
|
||||
with open(infile) as inp:
|
||||
main([l.rstrip() for l in inp.readlines()])
|
||||
main([l.rstrip() for l in inp])
|
||||
|
||||
Reference in new issue
Block a user