Categories
Why is the error not seeing the variable even though it is global?
def a(): global b b="yes" print(b)
Answer the question
In order to leave comments, you need to log in
Because the variable is not defined in the global scopeb
b
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question