equals in list python check code example Example: check if string equals string in list python if any(x in paid[j] for x in d): # do stuff