Lets say your numpy array is:
A = [1,1,2,3,4]
You can simply do:
A + .1
to add a number to tha
In addition to previous answers, to modify numbers with odd indices you should use A[1::2] instead of A[::2]