an> <span class="n">epsilon</span><span class="p">,</span> <span class="n">lr</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span>
    <span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;Update the Q table.</span>

<span class="sd">        Args:</span>
<span class="sd">            state (list): Current state of the agent.</span>
<span class="sd">            action (int): Selected action.</span>
<span class="sd">            next_state (