title: How do I replace a string at a index in python?
body: <p>So I already know how to remove a index like this:</p>
  <pre><code>i = &quot;hello!&quot;
  i= i[:0] + i[1:]
  
  print(i)
  'ello!'
  </code></pre>
  <p>But how do I replace it?
  So maybe I wanted to now put a H where the old h was but if I do this:
  <code>i[0] =&quot;H&quot;</code>
  I get this error:</p>
  <p>Traceback (most recent call last):
  File &quot;&lt;pyshell#2&gt;&quot;, line 1, in 
  i[0] =&quot;H&quot;
  TypeError: 'str' object does not support item assignment</p>
  <p>How do I fix this?</p>