how to find the first index of any of a set of characters in a string,min(s.find(i) if i in s else None for i in a)