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         
        
The names of variables in a function are not visible outside, so you need to call your function like this:
networks = splitNet()
print(networks)
A couple of other notes:
readlines; the function itself is an iterator.with statement.str.split, which is more readable and easier to understand than string.split.In summary, this is how your code should look like:
import csv
def splitNet():
    with open("/home/tom/Dropbox/CN/Python/CW2/network.txt") as nf:
        for line in csv.reader(nf, delimiter=','):
            yield map(int, line)
network = list(splitNet())
print (network)