human
True for all characters of a string
assistant
Here is some code to check characters of string `string` are true predication of function `predicate`

all(predicate(x) for x in string)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.