Hi I need help creating this programme.
I need to define a function
passGen, which takes two arguments: strength and passLength. The value of
strength can either be strong or medium (default is strong) and the value of
passLength ranges from 8-12 (default is 8).
If password’s length is less than 8 or greater than 12, the program prints out the
following message: "sorry, password must consist of at least 8-12 characters".
If password’s strength is set to ‘medium’, an 8-12 long random password is generated
out of the following characters: "abcdefghijklmnopqrstuvwxyz
If password’s strength is set to ‘strong’, an 8-12 long random password is generated
out of the following characters:
If the input is: passGen(‘strong’, 10)
A possible valid output would be: ^CYpJ?V8d*