From b04338b19e9002cbd07754961eba965a14bb467b Mon Sep 17 00:00:00 2001 From: David Vereb Date: Thu, 2 Dec 2021 10:33:35 -0500 Subject: [PATCH] Better output. Removed .rstrip() because I no longer need it. --- 2021/1/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/2021/1/main.py b/2021/1/main.py index 0b2eddc..1d254c5 100644 --- a/2021/1/main.py +++ b/2021/1/main.py @@ -1,5 +1,5 @@ with open('input', 'r') as fp: - last = int(fp.readline().rstrip()) + last = int(fp.readline()) increment = 0 decrement = 0 @@ -16,4 +16,6 @@ with open('input', 'r') as fp: last = amt -print increment, ",", decrement, ",", same +print "Increased: ", increment +print "Decreased: ", decrement +print " Remained: ", same