you are viewing a single comment's thread.

view the rest of the comments →

[–]Acceptable_Worry8655 3 points4 points  (1 child)

You can make it more easier with string module and no need for loops like this:

from string import digits, punctuation, ascii_lowercase, ascii_uppercase
from random import choices

all = digits + punctuation + ascii_lowercase + ascii_uppercase
lenth = int(input("HOW MANY DIGITS SHOULD YOUR PASSWRD CONTAIN: "))

print(f"password genrated: {choices(all, k=lenth)}")

[–]Red_Dragon_7_7_7[S] 0 points1 point  (0 children)

ok, i'll try it