Update template
This commit is contained in:
parent
7216a7ed87
commit
93c049ace1
@ -7,7 +7,7 @@ def read_sample():
|
|||||||
"""récupère les entrées depuis le fichier texte correspondant"""
|
"""récupère les entrées depuis le fichier texte correspondant"""
|
||||||
with open('inputs/dayDAY.txt', 'r') as f:
|
with open('inputs/dayDAY.txt', 'r') as f:
|
||||||
sample = f.read().split('\n')
|
sample = f.read().split('\n')
|
||||||
sample = [int(i) for i in sample if i != '']
|
sample = [ i for i in sample if i != '' ]
|
||||||
return sample
|
return sample
|
||||||
|
|
||||||
def part1(sample):
|
def part1(sample):
|
||||||
|
Loading…
Reference in New Issue
Block a user