Skip to content

Advent of Code 2019

Day 01
1
2
3
4
5
with open("day01_input.txt", "r") as f:
    data = [int(i) for i in f.read().splitlines()]

fuels = [mass // 3 - 2 for mass in data]
print(sum(fuels))