These are my Python solutions to the following editions of advent of code:
- 2015 38 ⭐
- 2016 TBD
- 2017 TBD
- 2018 TBD
- 2019 TBD
- 2020 TBD
- 2021 TBD
- 2022 TBD
- 2023: 32 ⭐
Template to quickly get the data from alvesvaren
This is a template repository to use with advent of code
When cd:ed into this repo, run;
$ python -m aoc
This will ask you for your session cookie (which can be found in the application tab in most browsers devtools when on adventofcode.com).
In 1a.py
:
from aoc import get_input
data = get_input(1).splitlines()
for line in data:
print(line)