Advent of Code
usage: runner.py [-h] [-i INPUT] [-b] [-t] problem
positional arguments:
problem Problem number. Pass like 17-a
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Path to input file. It will be loaded as a string.
-b, --bench Benchmark the solution.
-t, --test Run tests
Follow these naming conventions for runner to work.
day#.py
for filenamesproblem_{a,b}
for problem functionsTestProblem
for test cases
- Learn more advanced python features:
- generators
- context managers
- decorators