human
Converting from a string to boolean in Python?
assistant
Here is some code to convert string to boolean from defined set of strings

s in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh']

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