</span><span class="p">(</span><span class="n">input_list</span><span class="p">)):</span>
        <span class="k">if</span> <span class="n">current_index</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">current_index</span> <span class="o">=</span> <span class="n">input_list</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
        <span class="k">if</span> <span class="n">input_list</span><span class="p">[</span