i start with Python. I like to try new language. So i've got a "simple" problem about scope and Python.
Here is a recursive function
if myarray == False:
myarray = [ * 5 for _ in range(5)]
myarray = 1
"some code ..."
myarray = False
Disregarding the myriad of syntax errors, your
myarray variable seems to be declared globally and that's why it has global scope?