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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!