title: matlab to python coding
body: <p>I have this code in MATLAB and I am trying to convert it in Python.</p>
  <pre><code> yc(1:45)=-2;
   yc(46:90)=2;
   yc(91:136)=-2;
   yc(137:182)=2;
  </code></pre>
  <p>I don't know how to convert it in python thnx for helping me</p>