Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
359 B
1
Indexable
Never
import random
import string

def generate_password(length=12):
    characters = string.ascii_letters + string.digits + string.punctuation
    password = ''.join(random.choice(characters) for _ in range(length))
    return password

# Change the argument to set your desired password length
password = generate_password(16)
print("Random Password:", password)