From cf139d7a9d97a310b0d6ed9fb5605d76fa228f72 Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Fri, 15 Nov 2024 17:13:32 +0100 Subject: [PATCH] Updated template --- solution.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solution.py b/solution.py index cb3908c..e9056ce 100644 --- a/solution.py +++ b/solution.py @@ -2,10 +2,7 @@ import sys from pprint import pprint -input_f = "input" #sys.argv[1] - -with open(input_f) as file: - for line in file: +input_f = sys.argv[1] ######################################### @@ -14,6 +11,9 @@ with open(input_f) as file: # # ######################################### +with open(input_f) as file: + for line in file: +