title: Perform a string operation for every element in a Python list
body: <p>I have a list of strings in Python - <code>elements</code>. I would like to edit each <code>element</code> in <code>elements</code>. See the code below (it doesn't work, but you'll get the idea):</p>
  <pre><code>for element in elements:
      element = &quot;%&quot; + element + &quot;%&quot;
  </code></pre>
  <p>Is there a way to do this?</p>