From ff94e70daa2bb29d61d1b025206529f5b276368c Mon Sep 17 00:00:00 2001 From: FrederikBaerentsen Date: Thu, 7 Dec 2023 14:30:20 +0100 Subject: [PATCH] Starting day 7 --- .gitignore | 2 ++ 2023/day7/part1.py | 13 +++++++++++++ 2023/day7/test | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 2023/day7/part1.py create mode 100644 2023/day7/test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a0eb28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +input +test diff --git a/2023/day7/part1.py b/2023/day7/part1.py new file mode 100644 index 0000000..b55b755 --- /dev/null +++ b/2023/day7/part1.py @@ -0,0 +1,13 @@ +#!/bin/python3 + +import re +import sys +from pprint import pprint +input_f = sys.argv[1] + +d =[] + +with open(input_f) as file: + for line in file: + +pprint(d) diff --git a/2023/day7/test b/2023/day7/test new file mode 100644 index 0000000..e3500c3 --- /dev/null +++ b/2023/day7/test @@ -0,0 +1,5 @@ +32T3K 765 +T55J5 684 +KK677 28 +KTJJT 220 +QQQJA 483