title: How to multiply certain elements of an array by different sclars in Python
body: <p>For example, if I have an array of np.ones(N), the array will be shaped vertically.</p>
  <p>Next, I would do
  for i in range(1,int(N/2)):
  (this is where I want to multiply half the array by a certain constant)
  for i in range(int(N/2),int(N)):
  (this is where I want to multiply the other half of the array by a different constant)</p>
  <p>How would I do this?</p>