><span class="n">i</span><span class="p">]</span> <span class="o">==</span> <span class="n">current_index</span><span class="p">:</span>
            <span class="n">current_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">output_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">cur