title: Select two different intervals in a list (python)
body: <p>I am trying to fit a dataset in which I want my fitting model to account for two different intervals of my data (i.e.: I want to fit two different regions of my dataset, let's the first 10 elements of a list and the 30 last ones).</p>
  <p>To fit a specific interval within a list,I usually write the following:</p>
  <pre><code>p2, cov2 = scipy.optimize.curve_fit(scatter2,wv[0:121],ab[0:121],p0=p_guess2, absolute_sigma=True, maxfev=90000, method='lm') 
      a2, b2=p2
  </code></pre>
  <p>However, since I am looking to fit an extra region of data, I wanted to write in a pythonic way something of the following:</p>
  <pre><code>wv[0:121]+[461:481] #(I know this is not written properly)
  </code></pre>
  <p>What is then the proper way to call two different regions of a list?</p>
  <p>Thank you in advance for all the help!</p>
  <p>I have tried to google, but I am probably not googling the write terms to find the answer.
  I have also just tried to do the fitting by calling my list as</p>
  <pre><code>wv[0:121][461:481]
  </code></pre>
  <p>, but this did not work either.</p>