import random
words=['left','none','super','bale']
i=4
luke=[]
nexa=[]
while i>0:
new=random.choice(words)
luke=luke.append(new)
i=i-1
for k in range(0,len(words)):
if words[k]==new:
nexa=words[0:k]+words[(k+1):4]
else:
continue
words=nexa
print(luke)
I tried something like this but it is clearly not working any kind of help is really appreciated.