def isin ( elems , line ) : found = False for e in elems : if e in line . lower ( ) : found = True break return found
how to determine if something is in the a line in a list in python
Check if an element from a list is in a string .
def isin(elems, line):
    """Check if an element from a list is in a string.

    :type elems: list
    :type line: str

    """
    found = False
    for e in elems:
        if e in line.lower():
            found = True
            break
    return found