Question: Write a function replaceMutator(lst, old, new) that replaces all occurrences of the element old with new in the list lst. For this mutating function, it
Write a function replaceMutator(lst, old, new) that replaces all occurrences of the element old with new in the list lst. For this mutating function, it will not return any list, but instead it will change the lst itself.
This is Python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
