Last active
February 20, 2017 04:07
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the
words.txt: https://github.com/dwyl/english-words/blob/master/words.txt?raw=true