title: UnboundLocalError: local variable 'checking' referenced before assignment
body: <p>I have problem which cannot fix. I get the error </p>
  
  <blockquote>
    <p>UnboundLocalError: local variable 'checking' referenced before assignment</p>
  </blockquote>
  
  <p>My code</p>
  
  <pre><code>    def volume_checker_first_stage(volume1,volume2,withdraw_minimun):
        if volume1&gt;volume2:
         quantity = volume2
         if quantity &gt; withdraw_minimun:
              checking = True
         return quantity, checking
        elif volume2&gt;volume1:
         quantity = volume1
         if quantity &gt; withdraw_minimun:
                checking = True
         return quantity, checking
        else:
         return None,None
  </code></pre>