diff --git a/day06/part1.py b/day06/part1.py index ee2d549..e27520f 100644 --- a/day06/part1.py +++ b/day06/part1.py @@ -1,4 +1,4 @@ -lines = (set([c for c in x.strip()]) for x in open("input.txt")) +lines = (set(x.strip()) for x in open("input.txt")) current = set() count = 0 diff --git a/day06/part2.py b/day06/part2.py index 8f76906..b803883 100644 --- a/day06/part2.py +++ b/day06/part2.py @@ -1,4 +1,4 @@ -lines = (set([c for c in x.strip()]) for x in open("input.txt")) +lines = (set(x.strip()) for x in open("input.txt")) current = set() count = 0