day 03: setup

This commit is contained in:
Heiko Ludwig 2023-12-03 09:48:41 +01:00
parent b68f55af3a
commit 8f39957c08
4 changed files with 178 additions and 0 deletions

15
day_03/program.py Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env python3
# https://adventofcode.com/2023/day/3
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("input.txt")
if __name__ == '__main__':
main()