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