advent-of-code/_templates/riddle/new/python.ejs.t
2021-12-07 12:10:13 +01:00

23 lines
308 B
Perl

---
to: <%= year %>/<%= day %>/python/main.py
---
#!/usr/bin/env python
from os.path import join, dirname
# Day <%= day %>
# Common
def read_input(filename):
data = join(dirname(__file__), '..', filename)
with open(data) as f:
return f.read().strip()
# 1
print('1.')
# 2
print('\n2.')