I don't understand why any() is not working the way I expect it to. Below, I want to say, if any of the cities in the cities list are in the phrase.split(), return True. But why does it return false when phrase.split() is ['replacement', 'windows', 'in', 'seattle', 'wa']
and 'seattle' is clearly in the phrase.split() list?
>>> cities = ['seattle', 'san antonio', 'denver']
>>> phrase = 'replacement windows in seattle wa'
>>> any(cities) in phrase.split()
False
>>> 'seattle' in phrase.split()
True