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

Ian Kelly ian.g.kelly at gmail.com
Fri Nov 20 13:29:11 EST 2015


On Fri, Nov 20, 2015 at 11:16 AM,  <robert.bralic at si.t-com.hr> wrote:
> Dana petak, 20. studenoga 2015. u 18:16:52 UTC+1, korisnik Denis McMahon napisao je:
>> 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
>
> I Think That LISP Is Only Solution, I Wil Give Up Frpm Python...

Nagy and Chris gave you two different perfectly good solutions for Python.



More information about the Python-list mailing list