python if file has any item in a list matches code example Example: if string is in array python if item in my_list: # whatever