import random
lower_case = "abcdefghijklmnopqrstuvwxyz"
upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers = "0123456789"
symbols = "!#$%&()*+,-./:;<=>?@[]^_`{|}~"
allChars = lower_case + upper_case + numbers + symbols
length = 10
password = "".join(random.sample(allChars, length))
print(password)