Python 3.7.3
I have a list of lines and I want a single statement to test if a value is contained by any of the lines:
>>> data=[["red blue green yellow"],["peter ann jack beatrice"]]
>>> "ann" in data
False
I want this to be True.
Is there a single statement test, without explicit iteration, that will return True for "ann" or any of the single values in the two lists.