T = [0,0,0,1,0,0,0,-1,0]
def acoes(T):
listaAction=[]
for i in T:
if(T[i]==0):
listaAction.append(T.index(i))
return listaAction
print(acoes(T))
How do I write list indexes that have value 0 in listAction?