diff --git a/2018/day-8/python/main.py b/2018/day-8/python/main.py index edc7a24..20c4697 100644 --- a/2018/day-8/python/main.py +++ b/2018/day-8/python/main.py @@ -14,7 +14,7 @@ class Node(object): def run(self): curadd = 0 - for i in range(self.childnum): + for _ in range(self.childnum): self.children.append( Node(self.input, self.root + 2 + curadd) ) @@ -36,7 +36,7 @@ class Node(object): def __repr__(self): return f'Node at index {self.root}' - # Part 2 + # Part 2 Solution Function def getValue(self): if self.childnum == 0: return sum(self.entries) diff --git a/2018/day-9/input b/2018/day-9/input new file mode 100644 index 0000000..e69de29 diff --git a/2018/day-9/python/main.py b/2018/day-9/python/main.py new file mode 100644 index 0000000..e69de29