16 lines
331 B
Python
Executable file
16 lines
331 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
# https://adventofcode.com/2024/day/4
|
|
|
|
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("sample-input.txt")
|
|
# lines = get_lines("input.txt")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|