Solution to problem 7 in Python
This commit is contained in:
parent
4a2d3db28d
commit
b030ba8609
|
@ -69,7 +69,7 @@ with open("files/P7.txt") as f:
|
||||||
towers = [line for line in f.read().strip().split("\n")]
|
towers = [line for line in f.read().strip().split("\n")]
|
||||||
|
|
||||||
|
|
||||||
def part_1():
|
def part_1() -> None:
|
||||||
parents, childs = [], []
|
parents, childs = [], []
|
||||||
for line in towers:
|
for line in towers:
|
||||||
if "->" in line:
|
if "->" in line:
|
||||||
|
|
Loading…
Reference in New Issue