human
How to get the index of an integer from a list if the list contains a boolean?
assistant
Here is some code to get the index of an integer `1` from a list `lst` if the list also contains boolean items

next(i for i, x in enumerate(lst) if not isinstance(x, bool) and x == 1)

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