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)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: