Added template (see 2022) + Day 2 completed
This commit is contained in:
3
template/common.py
Normal file
3
template/common.py
Normal file
@@ -0,0 +1,3 @@
|
||||
def parse(filename: str):
|
||||
with open(filename) as f:
|
||||
return [line[:-1] for line in f.readlines()]
|
||||
14
template/part1.py
Executable file
14
template/part1.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
from common import parse
|
||||
|
||||
|
||||
def solve(input):
|
||||
pass
|
||||
|
||||
|
||||
def main():
|
||||
print(solve(parse("input")))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user