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!

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'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!

My Code:

https://repl.it/@NextGen22Genera/Password-Generator

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!