From 5fdc7e3444ae6f8cad8ccab8ef37785cbd0ef9ba Mon Sep 17 00:00:00 2001 From: David Vereb Date: Thu, 2 Dec 2021 11:18:42 -0500 Subject: [PATCH] I don't trust this language. --- 2021/1/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/2021/1/main.py b/2021/1/main.py index 1d254c5..0dab4b7 100644 --- a/2021/1/main.py +++ b/2021/1/main.py @@ -1,10 +1,10 @@ +increment = 0 +decrement = 0 +same = 0 + with open('input', 'r') as fp: last = int(fp.readline()) - increment = 0 - decrement = 0 - same = 0 - for line in fp: amt = int(line) if(amt > last):