From 2fafc1edd7b37d24b4a8712f0f2a1d76c54ef0bb Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Wed, 1 Dec 2021 17:41:32 +0100 Subject: [PATCH] Add default handling to template --- template.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/template.py b/template.py index 3293a7d..a142ff5 100644 --- a/template.py +++ b/template.py @@ -1,16 +1,22 @@ #!/usr/bin/python3 def part_1(input): - pass + result = 0 + for line in input: + pass + print("Part 1 result:", result) def part_2(input): - pass + result = 0 + for line in input: + pass + print("Part 1 result:", result) -input = list(); + +input = list() with open('input.txt') as fp: input = fp.readlines() part_1(input) part_2(input) -