Watch
1
0
Fork
You've already forked advent-of-code
0
advent-of-code/2017/aoc.py
2025-08-12 20:28:00 -04:00

10 lines
228 B
Python

import os
def input_path(day: int) -> str:
return os.path.join(os.path.dirname(__file__), "input", f"day{day:>02}")
def puzzle_input(day: int) -> str:
with open(input_path(day)) as f:
return f.read().strip()