day 02: set up

This commit is contained in:
Heiko Ludwig 2023-12-02 10:26:55 +01:00
parent ef2459f0c9
commit 14c62da3f7
4 changed files with 134 additions and 0 deletions

16
day_02/program.py Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env python3
# https://adventofcode.com/2023/day/2
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()