title: Python replace function
body: <p>I want to use the replace function however I only want to replace one character, not all instances of that character.</p>
  
  <p>For example :- </p>
  
  <pre><code>&gt;&gt;&gt; test = "10010"
  &gt;&gt;&gt; test = test.replace(test[2],"1")
  &gt;&gt;&gt; print test
  &gt;&gt;&gt; '11111' #The desired output is '10110'
  </code></pre>
  
  <p>Is there a way that I can do this?</p>