I found the earlier responses to the above question after encountering the problem with coding using code such as: [[0] * 6] * 3 to create a matrix.
First, I thank all the responders for pointing out correct methods and also how to use the id command to see the results, but I still don't understand why python say two lists are the same and print the same apparent results when one is a list of lists and one a list of identical rows? Does == just mean the two contain the same elements and order, but not necessarily the same structure? If so, is there a better comparison command for comparing lists which takes into account their structure? I am obviously missing something as the lists look identical as to the punctuation (spacing, commas,bracketing,values, types, response to equivalency, etc.) yet are definitely not.
I really want to understand why == says two lists are the same, yet they obviously are not.
I did a lot of programming in Pascal and SAS macro language never remember anything remotely similar happening.
Just pointing me to where to find a good discussion of this will be most appreciated.