grkunt...@gmail.com wrote:
I am just learning Python.I am trying to create a list of empty lists: [[], [], [], ...] (10 items total).
Apart from the solutions shown, why would you do that in the first place? Creating such a structure is probably not so pythonic so the way to create it does not matter. Sparse datastructures might be better represented with dicts. Regards Tino -- http://mail.python.org/mailman/listinfo/python-list