ktane/passwords.py

33 lines
1.0 KiB
Python

passwords = [
'about', 'after', 'again', 'below', 'could',
'every', 'first', 'found', 'great', 'house',
'large', 'learn', 'never', 'other', 'place',
'plant', 'point', 'right', 'small', 'sound',
'spell', 'still', 'study', 'their', 'there',
'these', 'thing', 'think', 'three', 'water',
'where', 'which', 'world', 'would', 'write'
]
final = passwords
responses = []
for i in range(5):
response = [*input("{}th letters: ".format(str(i)))]
responses.append(response)
for word in passwords:
foundword = None
for a in responses[0]:
if a == word[0]:
for b in responses[1]:
if b == word[1]:
for c in responses[2]:
if c == word[2]:
for d in responses[3]:
if d == word[3]:
for d in responses[4]:
if d == word[4]:
foundword = word
if foundword:
print(foundword)