def avoids(word, forbidden):
    """ Predicate that asks whether word avoids letters in the forbidden string
    """
    # Feels like there should be a more efficient way to do this using
    # set intersection, but I'll just check the word character by character
    for letter in forbidden:
        if word.find(letter)!=-1:
            return False
    return True