Skip to content

Instantly share code, notes, and snippets.

View AmandaLowery's full-sized avatar

Amanda Lowery AmandaLowery

View GitHub Profile
with open("Day1_input.txt", "r") as f:
modules = [int(x) for x in f.readlines()]
#part 1
fuel = sum((y // 3 - 2) for y in modules)
print(fuel)
#3390596
#holyshit
#part 2