Skip to content

Instantly share code, notes, and snippets.

@spapas
Created December 9, 2021 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spapas/b77c8d905f5c790bf5c5e796a3bf1d45 to your computer and use it in GitHub Desktop.
Save spapas/b77c8d905f5c790bf5c5e796a3bf1d45 to your computer and use it in GitHub Desktop.
from Measurements import find
sums_list =[]
with open('input', 'r') as f:
l=[int(i) for i in f.readlines()]
for idx in range(2, len(l)):
sums_list.append(l[idx] + l[idx-1] + l[idx-2])
print(find(sums_list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment