Random Password ๐
Contents
Random Password ๐ #
Write a function that works as a Random Strong Password Generator.
Rules#
Function returns a string
Length between 8 and 24 characters
At least one uppercase letter (
A-Z)At least one lowercase letter (
a-z)At least one digit (
0-9)It contains at least one special character (
!@#$%^&*()+=)Maximum of 2 repeated characters (regardless of order)
Always return a different password
You can use any
random functionfrom therandommodule.
Useful Links#
-
Specially:
isdigit(),islower(),isupper(),join()
-
Specially:
all(),any(),len()