data = "but, i, wont, hesitate, no, more, no"
words = data.split(", ")
unique_words = []
for w in words:
if w not in unique_words:
unique_words.append(w)
word_sorted = sorted(unique_words, key=len)
print(word_sorted)
To embed this project on your website, copy the following code and paste it into your website's HTML: