for i in W: print(W.index(i), end=' ')
0 0 0 0 0
W = [1, 1, 1, 1, 1] for index, value in enumerate(W): print(index, end=' ')