<filename>2019/day1-part1.py
#!/usr/bin/env python3

with open("day1.txt", "r") as file:
	print(sum(mass // 3 - 2 for mass in map(int, file)))

<filename>2019/day1-part1.py
#!/usr/bin/env python3

with open("day1.txt", "r") as file:
	print(sum(mass // 3 - 2 for mass in map(int, file)))

#!/usr/bin/env python3