educative.io

Educative

Altering mutable variables using function

Can you explain me last example of this lesson

In the function, each element of num_list is being multiplied by 10. The point of this example is to show that a mutable variable like a list is able to modified by a function (and the changes will stay in effect outside the function scope)

Let me know if this helps!