Random Password ๐ŸŸ #

Write a function that works as a Random Strong Password Generator.

Rules#

  1. Function returns a string

  2. Length between 8 and 24 characters

  3. At least one uppercase letter (A-Z)

  4. At least one lowercase letter (a-z)

  5. At least one digit (0-9)

  6. It contains at least one special character (!@#$%^&*()+=)

  7. Maximum of 2 repeated characters (regardless of order)

  8. Always return a different password

  9. You can use any random function from the random module.