Ejemplo n.º 1
0
def main() -> None:
    with readfile() as data:
        print(part1(data))
        print(part2(data))
Ejemplo n.º 2
0
def sample_data():
    with readfile('sample') as data:
        yield data
Ejemplo n.º 3
0
def main() -> None:
    with readfile() as data:
        part1_solution = part1(data)
        print(part1_solution)
        print(part2(data, part1_solution))
Ejemplo n.º 4
0
def input_data():
    with readfile('input') as data:
        yield data