removed test input

This commit is contained in:
Jonas Neugebauer
2020-12-13 11:39:43 +01:00
parent 9e35a9bb7c
commit 17bca9a66d
2 changed files with 2 additions and 20 deletions

View File

@@ -1,16 +1,7 @@
instr = '''
A contain 1 C.
B contain 1 D.
C contain no other bags.
D contain 1 E.
E contain no other bags.
F contain 1 D.
'''
input = dict()
with open('day7_input.txt', 'r') as f:
for line in f.readlines():
if len(line.strip()) > 0:
if len(line.strip()) > 0:
btype, content = line.strip()[:-1].split(' contain ')
btype= btype[:-1]
input[btype] = content.split(', ')