n class="s1">&#39;</span> <span class="o">+</span>
                     <span class="s1">&#39;if &quot;to&quot; is used in steps parameter, &#39;</span>
                     <span class="s1">&#39;please use &quot;by&quot; as well&#39;</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">step</span> <span class="o">=</span> <span class="n">steps</span>

    <span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span