Is there an meaning of '[[]]' in a list?

Nagy László Zsolt gandalf at shopzeus.com
Thu Nov 19 06:36:46 EST 2015


> I have question: Is there any difference between [[]] and []?
Yes.

[] - a list with zero elements. That is an empty list.
[[]] - A list with one element. (That element is an empty list.)

> [[]] can have deeper assignment and use than 
You can have it as deep as you want, if you have enough memory.




More information about the Python-list mailing list