import random
user_answer = int(input("Введите количество символов для пароля: "))
symbols = "+-/*!&$#?=@<>abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
password = ""
for s in range(user_answer):
password += random.choice(symbols)
print(password)