title: Replacing characters in string without replace() function
body: <p>This is mostly a logic problem. I am trying to replace a character in a string without using the replace function. I am trying to first change it into a list, change the elements, then turn it back into string. My attept:</p>
  <pre><code>def changeCar(ch,ca1,ca2):
      a=list(ch)
      for x in a:
          if x==ca1:
               x==ca2
      return a
  </code></pre>
  <p>However this doesn't work. Besides, I am not sure how to transform it back into a string.</p>