From: Brett Parker Date: Wed, 2 Dec 2020 19:01:34 +0000 (+0000) Subject: Remove extra odd/even lines X-Git-Url: https://git.sommitrealweird.co.uk/advent-of-code-2020.git/commitdiff_plain/099a032f3da31c9e718ccd0c7aa8768569a6471a Remove extra odd/even lines --- diff --git a/day1/find_2020_factors_2.py b/day1/find_2020_factors_2.py index 4682b7a..2b2b623 100644 --- a/day1/find_2020_factors_2.py +++ b/day1/find_2020_factors_2.py @@ -4,9 +4,6 @@ import sys data = [int(a) for a in open("input.txt", "r").read().split("\n") if a != ''] -odd_numbers = [a for a in data if a % 2 == 1] -even_numbers = [a for a in data if a % 2 == 0] - for i in range(0,len(data)-3): for j in range(i+1,len(data)-2): for k in range(i+2, len(data)-1):