12
szukam funkcji numpy że zrobi to równowartość:numpy funkcja ustawić elementy tablicy do wartości danej lista indeksów
indices = set([1, 4, 5, 6, 7])
zero = numpy.zeros(10)
for i in indices:
zero[i] = 42