Task: Fix Nested List Mutation Issue in Python
Task: Fix Nested List Mutation Issue in Python: a task in Terminal-Lego-15k (Harbor dataset). You are working on a Python project where a developer has encountered an unexpected behavior with nested lists. When creating a list of lists using the multiplication operator and modifying one element…
The task
You are working on a Python project where a developer has encountered an unexpected behavior with nested lists. When creating a list of lists using the multiplication operator and modifying one element, all sublists are affected instead of just the intended one.
Part of PrimeIntellect/Terminal-Lego-15k.