When I add an item to another list within a list, it becomes two lists instead of one

When I add an item to another list within a list, it becomes two lists instead of one.

The second list is exactly the item added to it but the problem is that two lists are created instead of one list.

This post was flagged by the community and is temporarily hidden.

This post was flagged by the community and is temporarily hidden.

remove the replace list item block

lists follow the call by reference logic, see also

which means, modifying the sublist modifies the main list at the same time

Taifun

1 Like