The Search Pattern
What if we need to check for any of several letters?
def uses_any(word, letters):
for letter in word.lower():
if letter in letters.lower():
return True
return False
uses_any('banana', 'aeiou')
uses_any('apple', 'xyz')
This is linear search: loop through, return True early if found, return False at the end.