I am trying to figure out how to search determine if a word has all the letters in a predetermined set. So for example, I give the letters "yx" and I search a database of words and pull the words that contain only those letters. So if I used the previous letters a word like "x-ray" would show up. This is what I have so far:
all((c in chars) for c in word)
If I use any instead of all I can get all words just 1 of letters. But why can't I do it this way?!?!!