From d641552737df0c3ae9211947bb60d64ccc89ed55 Mon Sep 17 00:00:00 2001 From: Mika Suhonen Date: Thu, 30 Nov 2023 19:16:09 +0200 Subject: [PATCH] Add 16 --- 16/p.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 16/p.py diff --git a/16/p.py b/16/p.py new file mode 100644 index 0000000..c524fd8 --- /dev/null +++ b/16/p.py @@ -0,0 +1,14 @@ +import os + +input = open(os.path.dirname(__file__) + + "/input-demo.txt", "r").readlines() + +V = {} + +for l in input: + d = l.strip().split() + V[d[1]] = (int(d[4].split('=')[1].split(';')[0]), + d[9:]) + + +print(V)