I'm new to python (but not programming in general) and don't really understand what is going on with lists. I have thousands of test sets in a text file and each test set is 256 (could be dfferent) x,y points. What I want to do is store each point in a test set to a list and then store each list in another list, effectively creating a 2D list. Two of the three options I've tried are error free but I don't know what the different options mean or why I should pick one over another. This is not the same as "Least Astonishment" and the Mutable Default Argument because that doesn't explain which of these is a list and what the other definitions are.
foo= list
foo.append(1)#TypeError: descriptor 'append' requires a 'list' object but received a 'int'
bar= []
bar.append(1)#no error
baz= list()
baz.append(1)#no error