ss="sd">    list of lists</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">output_list</span> <span class="o">=</span> <span class="p">[]</span>
    <span class="n">current_list</span> <span class="o">=</span> <span class="p">[]</span>
    <span class="n">current_index</span> <span class="o">=</span> <span class="kc">None</span>
    <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len