Skip to content

alvesvaren/AoC-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AoC-template

This is a template repository to use with advent of code

Initialize:

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).

Usage:

In 1a.py:

from aoc import get_input

data = get_input(1).splitlines()

for line in data:
    print(line)