writing a simple code to store unique string into list. However if i use if var in list == False the string output = blank. However if i use If var not in list, I gotten the desired output.
please advise why if var in list == False does not work here.
bank = list()
while True:
word = input('Enter a word,type"done"to finish')
if word == 'done': break
if word in bank == False: # this code does't work as intended
bank.append(word)
bank.sort()
print(bank)