What is a Pythonic way to use a list as an index in Python? With numpy you can do the following:
import numpy
a = numpy.zeros(10)
indices = [1,3,6]
a[indices] = 1
# This gives [0,1,0,1,0,0,1,0,0,0]
What is the simplest way to replicate this without using numpy?