Skip to content

Instantly share code, notes, and snippets.

@aopell
Last active February 20, 2017 04:07
Show Gist options
  • Select an option

  • Save aopell/a4d9b93d28132f46c841be9e86ddbb9c to your computer and use it in GitHub Desktop.

Select an option

Save aopell/a4d9b93d28132f46c841be9e86ddbb9c to your computer and use it in GitHub Desktop.
The wrong solution to Day 8 from the Game Detectives' Argvent Calendar 2016
with open("words.txt") as file:
list = [x for x in file.read().split() if len(x) == 8 and x[0] == x[6] and ord(x[0]) + 1 == ord(x[1]) and ord(x[2]) + 2 == ord(x[7])]
print(list)
@aopell

aopell commented Dec 13, 2016

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment