riddle 1 (python)

saw this question: Check whether all characters of one string, are found in another. highlight the text below for my answer.

(python solution below – i cheated – i checked my syntax in an interpreter)

 
def fn(x,y): not False in [i in x for i in y]

[More programming riddles]

Leave a comment