title: How to use replace() function in Python for this situation?
body: <p>The situation is that we have 4,3,4,3 respectively. If we only want to correct 4 at index 20 to be 3.5. What should the third parameter be?</p>
  <pre><code>name = &quot;Land grade 4 year 3 4 members at building 4&quot;
  print(name.replace((&quot;4&quot;,&quot;3.5&quot;,?))
  </code></pre>
  <p>The result that I want -&gt; &quot;Land grade 4 year 3 3.5 member at building 4&quot;</p>