I am trying to shuffle a list in python so I could join it with an empty string. Can anyone please explain to me why it doesn't work?
p = input()
letters = [x for x in p]
letters = random.shuffle(letters)
p = "".join(letters)
I am trying to shuffle a list in python so I could join it with an empty string. Can anyone please explain to me why it doesn't work?
p = input()
letters = [x for x in p]
letters = random.shuffle(letters)
p = "".join(letters)