n class="k">if</span> <span class="s2">&quot;phenyl&quot;</span> <span class="ow">in</span> <span class="n">func_groups</span><span class="p">:</span>
            <span class="n">rings_indices</span> <span class="o">=</span> <span class="p">[</span><span class="nb">set</span><span class="p">(</span><span class="nb">sum</span><span class="p">(</span><span class="n">ring</span><span class="p">,</span> <span class="p">()))</span> <span class="k">for</span> <span class="n">ring</span> <span class="ow">in</span>