This is my current code:
words = []
word = input('Word: ')
while word != '':
words.append(word)
word = input('Word: ')
print("You know "+ str(len(words)), "unique word(s)!")
This is what I need:
Word: Chat
Word: Chien
Word: Chat
Word: Escargot
Word:
You know 3 unique word(s)!
It is not supposed to count any duplicate words. I'm not sure how to avoid this. Because I have done everything else except this. Is there an easy way, but a simple one?