Task: Implement Pass-by-Reference Behavior in Python
Task: Implement Pass-by-Reference Behavior in Python: a task in Terminal-Lego-15k (Harbor dataset). In Python, arguments are passed by "assignment" (sometimes called "pass by object reference"). This means that when you assign a new value to a parameter inside a function, it doesn't affect the…
The task
In Python, arguments are passed by "assignment" (sometimes called "pass by object reference"). This means that when you assign a new value to a parameter inside a function, it doesn't affect the original variable outside the function. However, if you mutate the object itself (e.g., modifying a list's contents), those…
Part of PrimeIntellect/Terminal-Lego-15k.