title: How to replace sublists within a list?
body: <p>I have a list. this list has sublists. Each sublist contains a string. I want to apply <code>.replace()</code> to these strings to change a letter.</p>
  <pre><code>mylist = [[&quot;aus&quot;],[&quot;ausser&quot;],[&quot;bei&quot;],[&quot;mit&quot;],[&quot;noch&quot;],[&quot;seit&quot;],[&quot;von&quot;],[&quot;zu&quot;]]
  
  for sublist in mylist:
      sublist = [stuff.replace(&quot;s&quot;, &quot;Q&quot;) for stuff in sublist]
  print(mylist)
  </code></pre>
  <p>But it just returns the original list. It should return</p>
  <p><code>[[&quot;auQ&quot;],[&quot;auQQer&quot;],[&quot;bei&quot;],[&quot;mit&quot;],[&quot;noch&quot;],[&quot;Qeit&quot;],[&quot;von&quot;],[&quot;zu&quot;]]</code></p>
  <h1>Question</h1>
  <p>Why doesn't my code change my subslists even though I redefine them within the for loop?</p>