Build a password generator by writing a function named pwgen
taking the following
parameters:
length
: the length of the generated passwordwith_digits
: Defaulting to True, to allow or disallow digitswith_uppercase
: Defaulting to True, to allow or disallow capital letterspwgen
returns a password with lowercase letters AND digits
if with_digits == True
AND uppercase letters if with_uppercase == True
.
When asked for a password with multiple character categories,
all categories have to be represented.
For instance, with with_digits == True
, the password must have at least one
lowercase letter AND at least one digit.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts: