mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-10-31 23:54:11 +01:00
21 lines
266 B
Perl
21 lines
266 B
Perl
|
---
|
||
|
to: <%= year %>/<%= day %>/python/main.py
|
||
|
---
|
||
|
#!/usr/bin/env python
|
||
|
|
||
|
from os.path import join, dirname
|
||
|
|
||
|
# Day 01
|
||
|
|
||
|
# Common
|
||
|
|
||
|
|
||
|
def read_input(filename):
|
||
|
data = join(dirname(__file__), '..', filename)
|
||
|
with open(data) as f:
|
||
|
return f.read()
|
||
|
|
||
|
# 1
|
||
|
|
||
|
# 2
|