From dabc0d65bb3ff4535fecc8a6c3edba7437269c70 Mon Sep 17 00:00:00 2001 From: Heiko Ludwig Date: Mon, 9 Dec 2024 07:57:48 +0100 Subject: [PATCH] set up day 9 --- day_09/program.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 day_09/program.py diff --git a/day_09/program.py b/day_09/program.py new file mode 100755 index 0000000..3247ddb --- /dev/null +++ b/day_09/program.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +# https://adventofcode.com/2024/day/9 + +def get_lines(filename: str) -> list: + with open(filename, "r") as file: + return [line.strip() for line in file.readlines()] + + +def main(): + lines = get_lines("sample-input.txt") + # lines = get_lines("input.txt") + + +if __name__ == '__main__': + main()