From dfdb52340a641131a2bec2860b12de16ae99b66b Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 14 Jul 2023 23:22:01 -0500 Subject: [PATCH] really stupid password implementation --- passwords.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 passwords.py diff --git a/passwords.py b/passwords.py new file mode 100644 index 0000000..306e8a3 --- /dev/null +++ b/passwords.py @@ -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)