python best way to compare 2 long strings code example Example: check if string equals string in list python if any(x in paid[j] for x in d): # do stuff