Variables cannot be accessed outside the scope of a function they were defined in.
Simply do this:
network = splitNet()
print network
Variables cannot be accessed outside the scope of a function they were defined in.
Simply do this:
network = splitNet()
print network