I have simple code. And i have problem: "Unresolver reference 'a' more...". This problem occurs at the third if function.
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?
def abcd(s, e):
if s<0.72:
    if e>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

 
     
    