-
-
Save anonymous/5a4cb2265e4b803dded7dbca2da9062e to your computer and use it in GitHub Desktop.
This file contains 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
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!') |
This file contains 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
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