Very nice way to generate a password! Wrap that in a function that takes the argument pw_length and and you'd be able to generate a good password of any length quite quickly. I'm guessing you've seen something similar I developed on my GitHub profile? I will absolutely admit that the use of the string class rather than a list of characters is a nice touch and, admittedly, one I did not think of. Send me a pull request and I'll merge it (hurry though cuz I'll do it myself before long then you'll be minus a commit on your profile 😜😜
You go ahead, you're the "toughest developer in the room" after all. If you want the class to be useful, it should include options for common requirements like passwords with no special characters and at least one capital and number, etc.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.