import random
b = []
a = int(input(print("How many items you want to shuffle? ")))
for i in range(0, a):
n = input('Please enter a item: ')
b.append(n)
random.shuffle(b)
print(b)
In python 3.8 you can use the walrus to help cram it into a couple of lines
First you have to create a list from the string and store it into a variable. Then you can use random to shuffle it. Then just join the list back into a string.
random.shuffle(x := list("abcdefghijklmnopqrstuvwxyz"))
x = "".join(x)