title: Unresolver reference in function if
body: <p>I have simple code. And i have problem: "Unresolver reference 'a' more...".
  This problem occurs at the third if function. </p>
  
  <p><a href="https://i.stack.imgur.com/35H6Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/35H6Y.png" alt="enter image description here"></a></p>
  
  <p>And I have to declare it outside of the abcd function, otherwise each time in the while function a will be set to the value I declare and not according to the if. How to do it?</p>
  
  <pre><code>def abcd(s, e):
  if s&lt;0.72:
      if e&gt;30:
      a=0
      return a
  
  else:
      a=0
      return a
  else:
      if a == 1:
         a = 1
         return a
      else:
         a=1
         return a
  while True:
  abcd
  </code></pre>