but consider e.g. one of the examples in the workshop is https://stackoverflow.com/questions/16043797/how-do-i-pass-variables-across-functions
notice how OP even passes (inadvertently, the global) list as an argument to the second function, expecting it to instead be the thing that was returned from the first. The global list seems to have been intended as a declaration more than anything