advent-of-code/_templates/riddle/new/python.ejs.t

21 lines
266 B
Perl
Raw Normal View History

2021-12-01 14:46:12 +01:00
---
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