Password Generator

I'm trying to create a password generator and I want it to generate a password that has to include letters, numbers and symbols. But, when I ask for an input it would input (e.g 9) it would generate 9 letters, symbols and numbers. And if I just put all the letters, numbers and symbols in one string, it's not guaranteed to include symbols or numbers.

Help/Feedback is appreciated.

Thank you!

a5rocks (535)

Um it works for me... Just `for c in length(length//3):`

so the password is the right length.

By the way, I recommend DiceWare as a password generator. It makes a memorable password.

NextGen22Genera (1)

@a5rocks Thanks!

So, since you have 3 different possible character sets to choose from, I made a simple

`r`

variable that makes a random choice between 1 and 3, and picks a character from a character set based on that choice.I made a fork of your repl, with the modifications I listed above, you can look at: https://repl.it/@heyitsmarcus/Password-Generator

@heyitsmarcus Thanks!

@NextGen22Genera You're welcome! Please upvote if my answer helped you, and good luck!