import random

def generatePassword(num):
    password = '<PASSWORD>!@#$%^&*()?'
    return "".join(random.sample(password, num))

num = int(input("How long do you want your password to be: "))
print(generatePassword(num))
import random

def generatePassword(num):
    password = '<PASSWORD>!@#$%^&*()?'
    return "".join(random.sample(password, num))

num = int(input("How long do you want your password to be: "))
print(generatePassword(num))
#$%^&*()?'