I have 2 lists such as this:
>>>first = ['hello', 'hey', 'hi', 'hey']
>>>second = ['hey', 'hi', 'hello']
I want a new list that contains the word that is not included in the second list. In this case:
odd_word = ['hey']
What is the quickest way of doing this? Thank you.
I tried using the method shown here: Get difference between two lists, but it gives me a blank list.
>>> odd = list(set(first) - set(second))
>>> odd
[]