I want this to work. [[]] * n

SherjilOzair sherjilozair at gmail.com
Mon Jun 13 18:37:54 EDT 2011


I want a list which contains n lists, which are all different. I had
read a page which was about the mutability of lists, and how the *
operator on lists just does a shallow copy. But I can't find it now.
Does anyone know of that page ?

Either way, How to get a list of list, with all original lists ?



More information about the Python-list mailing list