human
How do I get a list of indices of non zero elements in a list?
assistant
Here is some code to get a list of indices of non zero elements in a list `a`

[i for i, e in enumerate(a) if e != 0]

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