This commit is contained in:
cupcakearmy 2021-12-01 14:46:12 +01:00
parent 348ed1db3b
commit 48c5ad04ff
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
---
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