0

I want to do a password-generator. But I don't know how to set the length of the password depended in user input.

Help me.

30th Apr 2020, 8:29 PM
Kleant Bajraktari
Kleant Bajraktari - avatar
3 Réponses
0
have a look at the random module: random.choices() or random.sample() (either of the above ...depending on..... if repeated characters are allowed).
30th Apr 2020, 8:42 PM
rodwynnejones
rodwynnejones - avatar
0
I know how to generate ranom
30th Apr 2020, 8:47 PM
Kleant Bajraktari
Kleant Bajraktari - avatar
0
For the random module: https://docs.python.org/3/library/random.html#module-random The string module might come in handy too:- https://docs.python.org/3/library/string.html#module-string
30th Apr 2020, 8:53 PM
rodwynnejones
rodwynnejones - avatar