Skip to content

Instantly share code, notes, and snippets.

@larry-dalmeida
Last active March 15, 2025 12:05
Show Gist options
  • Save larry-dalmeida/64d35545f8602d3b140cfb4a99068d49 to your computer and use it in GitHub Desktop.
Save larry-dalmeida/64d35545f8602d3b140cfb4a99068d49 to your computer and use it in GitHub Desktop.
Assignment 00

Memorable Username Generator

Problem Statement

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.

Constraints

  • 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.

Examples

generate_memorable_password("rewe", 3)    # funOtter@Rewe1971
generate_memorable_password("bvg", 2)     # bvg!Angry1955

Guidelines

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment