human
Find the indices of elements greater than x
assistant
Here is some code to create a list containing the indices of elements greater than 4 in list `a`

[i for i, v in enumerate(a) if v > 4]

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