ass="p">[]</span>

<span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">damid_average</span><span class="p">:</span>
    <span class="n">p1</span> <span class="o">=</span> <span class="n">k</span><span class="o">-</span><span class="n">ave_smallest</span>
    <span class="n">p2</span> <span class="o">=</span> <span class="n">ave_largest</span><span class="o">-</span><span class="n">k</span>
    <span class="n">rp_pos</span><span class="o">.</span><span class="n">app