title: How to replace first occurrence of character in a string?
body: <p>Given string as:</p>
  
  <pre><code>s = "Python is programming language"
  </code></pre>
  
  <p>In this, I want to replace 2nd occurrence of <code>'n'</code> with any character, let's say <code>'o'</code>. The expected string would be:</p>
  
  <pre><code>"Python is programmiog language"
  </code></pre>
  
  <p>How to do this in python? Can I do it using <code>replace</code> function only? or any other way to do that?</p>