From e06d2de6eb98689e554f08b345c6c3f12b61aa98 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Sun, 6 Dec 2020 14:09:35 +0100 Subject: [PATCH] Day 6 (cleanup #2) --- day06/part1.py | 2 +- day06/part2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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