Update template

This commit is contained in:
augustin64 2021-12-01 21:46:09 +01:00
parent 7216a7ed87
commit 93c049ace1

View File

@ -7,7 +7,7 @@ def read_sample():
"""récupère les entrées depuis le fichier texte correspondant"""
with open('inputs/dayDAY.txt', 'r') as f:
sample = f.read().split('\n')
sample = [int(i) for i in sample if i != '']
sample = [ i for i in sample if i != '' ]
return sample
def part1(sample):