Skip to content

Instantly share code, notes, and snippets.

@BazingaThat
BazingaThat / aocday1.py
Last active September 26, 2023 17:55
AOC Day1
# Online Python - IDE, Editor, Compiler, Interpreter
f = open("AOCDay1.txt", "r")
with open('AOCDay1.txt') as f:
elf_calories = [line.rstrip('\n') for line in f]
print(elf_calories)
elves = []
i = 0
for elf in elf_calories: