def find_listcomp(students, value):
    return [student for student in students if student[1] == value or 
        student[2] == value]

def find_filter(students, value):
    return [s for s in students if s[1] == value or s[2] == value]
Using python how to find elements in a list of lists based on a key that is an element of the inner list?