Disregarding the myriad of syntax errors, your myarray variable seems to be declared globally and that’s why it has global scope?
4
solved Why Python scope my variable outside my function?
Disregarding the myriad of syntax errors, your myarray variable seems to be declared globally and that’s why it has global scope?
4
solved Why Python scope my variable outside my function?