SyntaxFix
Write A Post
Hire A Developer
Questions
numpy has arrays that allow you to use other lists/arrays as indices:
import numpy S=numpy.array(s) S[a]=m