Add default handling to template
This commit is contained in:
10
template.py
10
template.py
@@ -1,16 +1,22 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
def part_1(input):
|
def part_1(input):
|
||||||
|
result = 0
|
||||||
|
for line in input:
|
||||||
pass
|
pass
|
||||||
|
print("Part 1 result:", result)
|
||||||
|
|
||||||
|
|
||||||
def part_2(input):
|
def part_2(input):
|
||||||
|
result = 0
|
||||||
|
for line in input:
|
||||||
pass
|
pass
|
||||||
|
print("Part 1 result:", result)
|
||||||
|
|
||||||
input = list();
|
|
||||||
|
input = list()
|
||||||
with open('input.txt') as fp:
|
with open('input.txt') as fp:
|
||||||
input = fp.readlines()
|
input = fp.readlines()
|
||||||
|
|
||||||
part_1(input)
|
part_1(input)
|
||||||
part_2(input)
|
part_2(input)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user