really stupid password implementation

This commit is contained in:
randomuser 2023-07-14 23:22:01 -05:00
parent f6ee60da2b
commit dfdb52340a

32
passwords.py Normal file
View File

@ -0,0 +1,32 @@
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)