How To Create A Endles List Of Lists In Python...???

Denis McMahon denismfmcmahon at gmail.com
Fri Nov 20 12:14:21 EST 2015


On Fri, 20 Nov 2015 08:43:04 +0100, HKRSS wrote:

> Thanks In Advance, Robert...;)

Just keep appending child lists to parent list:

l = []

while True:
   l.append([])

Until you run out of memory

But I think that this answer although it appears accurate to the question 
is not a solution for anything useful, because it will just use all the 
memory up. So perhaps you need to express your question in a better 
manner.

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list