mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-09-01 13:00:39 +00:00
template
This commit is contained in:
@@ -5,7 +5,7 @@ to: <%= year %>/<%= day %>/python/main.py
|
||||
|
||||
from os.path import join, dirname
|
||||
|
||||
# Day 01
|
||||
# Day <%= day %>
|
||||
|
||||
# Common
|
||||
|
||||
@@ -13,7 +13,7 @@ from os.path import join, dirname
|
||||
def read_input(filename):
|
||||
data = join(dirname(__file__), '..', filename)
|
||||
with open(data) as f:
|
||||
return f.read()
|
||||
return f.read().strip()
|
||||
|
||||
# 1
|
||||
|
||||
|
Reference in New Issue
Block a user