title: How to mutate a list with a function in python?
body: <p>Here's a pseudocode I've written describing my problem:- </p>
  
  <pre><code>func(s):
     #returns a value of s
  
  x = a list of strings
  print func(x)
  print x #these two should give the SAME output
  </code></pre>
  
  <p>When I print the value of x in the end, I want it to be the one returned by func(x). Can I do something like this only by editing the function (and without setting <code>x = func(x)</code>)</p>