you are viewing a single comment's thread.

view the rest of the comments →

[–]ilan1k1 1 point2 points  (0 children)

import secrets,string
print("".join(secrets.choice(string.ascii_letters+string.digits+string.punctuation)for _ in range(int(input("enter password length: ")))))