My question is to ask user input a world at a time and see how many unique world the user know (duplicate word wont count) e.g.
Word: Chat
Word: Chien
Word: Chat
Word: Escargot
Word:
You know 3 unique word(s)!
below is what I have now:
count = 0
listword = []
word = input("Word: ")
while word != "":
for i in listword:
if i != word:
listword.append(word)
count += 1
word = input("Word: ")
print("You know "+count+"unique word(s)!")
however the output is like this:
Word: hello
Word: hi
Word: hat
Word:
You know 0 unique word(s)!
How can I adjust my code and why is count still =0?