Thursday, April 17, 2014

Returning a list from a python function

It's easier than imaginable. Just make a list in your function, then say return . As long as the calling function assigns the result to be a local list, and that list is accessed by array index in the calling function's code, it works seamlessly.

http://stackoverflow.com/questions/9317025/python-return-list-from-function