Monty @ The Python Coding Place @thepythoncodingplace.com · Mar 7

At the moment, `print_()` has access to global variables and any local variables within it, such as the parameter `some_obj` which becomes a local variables when you call the function. Let's enclose this local scope visually

0 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 7

Ideally, you'd like to expand that bubble to also include the list `data`, so that the function's local scope and the variable `data` are enclosed within a common scope.