import random
s = "abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"
passlen = 4
p = "".join(random.sample(s,passlen))
p2 = "".join(random.sample(s,passlen))
print(p,"-",p2)
This is my code. But when i run it get something like this: RJ9e - zN0P I do not need the spaces in between. What am i missing here? Thanks!