import random
import string
## Length of the string
length = 12
lower = string.ascii_lowercase
upper = string.ascii_uppercase
num = string.digits
symbols = string.punctuation
all = lower + upper + num + symbols
temp = random.sample(all,length)
randstr = "".join(temp)
print(randstr)