From dbfba43657ecf48021dbffea856c8b3d849a7738 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Wed, 23 Aug 2023 23:39:32 +0200 Subject: [PATCH] made it more modular --- 000-999/147/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/000-999/147/main.py b/000-999/147/main.py index 6edad7f..ec4241c 100644 --- a/000-999/147/main.py +++ b/000-999/147/main.py @@ -1,2 +1,5 @@ -with open('./000-999/147/inputs/flag') as file: - print(file.read()) +if __name__ == '__main__': + with open('./000-999/147/inputs/flag') as file: + input = file.read() + + print(input)