I just want to remove the duplicates of the word passed but it's not working.
wordlist = ["a", "a", 'b', "b", "b", "c", "d", "e"]
new_list = wordlist
word = "a"
for i in range(len(wordlist)):
if wordlist[i] == word:
new_list.remove(word)
print(new_list)