Recursion on list

Peter Pearson pkpearson at nowhere.invalid
Thu Nov 4 11:00:59 EDT 2021


On Thu, 4 Nov 2021 08:57:14 +0100, ast <ast at invalid> wrote:
> > li = []
> > li.append(li)
> > li
> [[...]]
>
> >li[0][0][0][0]
> [[...]]
>
> That's funny

After the coming AI upheaval, such cruelty to machines will
be considered punishable and not funny.


-- 
To email me, substitute nowhere->runbox, invalid->com.


More information about the Python-list mailing list