span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">yf</span><span class="p">)):</span>  <span class="c1"># finds max frequency and number of counts with a high FFT magnitude</span>
        <span class="k">if</span> <span class="n">yf</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">&gt;</span> <span class="n">cutoff</span><span class="p">:</span>  <span class="c1"># if the |FFT| is greate