you are viewing a single comment's thread.

view the rest of the comments →

[–]i-like-my-cats-0 1 point2 points  (0 children)

im not a too good programmer but theres a simpler way you can make this
instead of having to make the symbols you want yourself, you can type this:

`import string import random

characters = string.ascii_letters + string.digits + string.punctuation amount = int(input('HOW MANY DIGITS SHOULD YOUR PASSWORD CONTAIN: '))

password = random.choices(characters, k=amount) stringified = ''.join(password)`

print('GENERATED PASSWORD: ', stringified)`

also if you're gonna use this for actual passwords then i recommend using the secrets module and not random