I have a function that parses a file into a list. I\'m trying to return that list so I can use it in other functions.
def splitNet(): network = [] f
Have you actually called the function yet? This works fine (in the Python interpreter)
>>> def f(): ... network = [] ... network.append(1) ... network.append(2) ... network.append(3) ... return network ... >>> network = f() >>> print network [1, 2, 3]