Solution to problem 7 in Python
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user