title: How to change the current character in "for char in string" Python 3
body: <p>So given this example:</p>
  
  <pre><code>string = "string"
  for char in string:
      if char = "a":
          # change current character to some other character
      elif char = "b"
          # change current character to some other character
  </code></pre>
  
  <p>how can I make it so that the current character of the string is replaced with some other string
  ("replace()" changes all of the character of the same type</p>
  
  <p>Thanks</p>