Skip to content

Instantly share code, notes, and snippets.

/script.py Secret

Created August 17, 2016 01:36
Show Gist options
  • Save anonymous/5a4cb2265e4b803dded7dbca2da9062e to your computer and use it in GitHub Desktop.
Save anonymous/5a4cb2265e4b803dded7dbca2da9062e to your computer and use it in GitHub Desktop.
import msvcrt
with open('words.txt') as f:
for word in f:
word = word.strip()
print('\nTry %s' %word)
for char in word:
try:
assert(char == msvcrt.getwch())
except:
print('Wrong.')
break
else:
print('Correct!')
amet
anim
aute
duis
elit
enim
esse
nisi
quis
sint
sunt
culpa
dolor
ipsum
irure
lorem
magna
minim
nulla
velit
aliqua
cillum
dolore
fugiat
labore
mollit
tempor
veniam
aliquip
commodo
eiusmod
laboris
laborum
nostrud
officia
ullamco
deserunt
occaecat
pariatur
proident
consequat
cupidatat
excepteur
voluptate
adipiscing
incididunt
consectetur
exercitation
reprehenderit
mamkutvoyuyebal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment