set up day 01
This commit is contained in:
parent
3f21aab6d7
commit
e268519cc5
4 changed files with 1033 additions and 0 deletions
16
day_01/program.py
Executable file
16
day_01/program.py
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# https://adventofcode.com/2023/day/1
|
||||
|
||||
def get_lines(filename: str) -> list:
|
||||
with open(filename, "r") as file:
|
||||
return [line.strip() for line in file.readlines()]
|
||||
|
||||
|
||||
def main():
|
||||
lines = get_lines("test-input.txt")
|
||||
# lines = get_lines("input.txt")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue