- Python 3.12+
- Create input as text file in the
inputsfolder - Run the solution file
python day1.py ./inputs/day1.txt # run day 1
There are also some pre-configured VSCode tasks that can be used to quickly run files:
- run day script runs
python {current file} ./inputs/{current file name without .py}.txt - run day script ex1 runs
python {current file} ./inputs/{current file name without .py}.1.ex.txt(good for running examples given by AoC) - run day script with custom input file prompts for a file name then run
python {current file} {file name from prompt}