Passwords can be hard to remember, especially if you use different passwords for different websites and don't always have access to a secure password vault.
Write a function generate_memorable_password(custom_word: str, words: int) -> str
that generates a strong, secure and memorable password.
- Readable but secure (easy to remember, hard to guess)
- Has at least
words
length of words excluding the number and special characters - Mix of letters, at least one number and at least one special character and at least one uppercase character
- The order in which the words, numbers, special character is not important and can be randomly decided.
generate_memorable_password("rewe", 3) # funOtter@Rewe1971
generate_memorable_password("bvg", 2) # bvg!Angry1955
- This is not a test. Feel free to ask me as many questions as you want (highly encouraged!!)
- For the memorable words, feel free to hard code a list of words and use them. In a later exercise we will see how this can be dynamically generated.