I have to test if a list of strings includes at least one element containing a given text (and the text contains quotes). Is it possible in a compact way without defining a new function?
E.g.
# Text to find
text = """This is a text containing 'quotes' and "doublequotes""""
# List to test
test_strings = [
"This is a text",
"""Wow! This is a text containing 'quotes' and "doublequotes"!!!"""
]
Obviously I can use for loops to do that, but I was looking for something to be run in one line but still readable.