At the top of my python file, I create a list:
table = [[]]
Then I have a method, that sets the value of the list:
def setTable():
table = list(csv.reader(open("vplan/temp.csv")))
print(table)
If I run it, the value of table gets printed out, as it should be. However, if I try to print it outside of my method
print(table)
It only prints "[[]]" - I dont understand why. I hope someone can explain this to me, I don't use Python very often.