<span class="k">else</span><span class="p">:</span>
                <span class="c1"># print(&quot;Left rotation&quot;)</span>
                <span class="n">node</span> <span class="o">=</span> <span class="n">node</span><span class="o">.</span><span
            class="n">left_rotation</span><span class="p">()</span>  <span class="c1">#  Rotation already deals with filiation</span>
                <span class="n">node</span><span class="o">.</span><span class="n">left</span> <span class="o">=</span> <spa