I wrote the below function to return True if it detects the string 'Device' in a list
def data_filter2(inner_list):
return any(['Device' in str(x) for x in inner_list])
is there a way to search the list for more than one string and return True it it finds either one?
I tried
def data_filter2(inner_list):
return any(['Device' or 'Drug' in str(x) for x in inner_list])
But this did not work.