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