<gh_stars>0
import string
import random

SYMBOLS = '@#$%=:;?~*()'

size = int(input("How many characters?: "))

def password_generator(size, chars=string.digits + string.ascii_letters + SYMBOLS):
    return ''.join(random.choice(chars) for _ in range(size))

print(password_generator(size))

import string
import random

SYMBOLS = '@#$%=:;?~*()'

size = int(input("How many characters?: "))

def password_generator(size, chars=string.digits + string.ascii_letters + SYMBOLS):
    return ''.join(random.choice(chars) for _ in range(size))

print(password_generator(size))
#$%=:;?~*()'