title: How to change all the letter that were in a position that is multiple of 2?
body: <p>I'm trying to change the position of a character/letter that is multiple of 2 with the character <code>*</code>. However, when I try to run it I get an error message</p>
  <blockquote>
  <p>'str' object does not support item assignment</p>
  </blockquote>
  <pre><code>def guess(x):
      i = 0
      while i &lt; len(x):
          if i % 2 == 0:
              x[i] = &quot;*&quot;
              i = i + 1
      return x
      print(guess(&quot;today is a beautiful day&quot;))
  </code></pre>
  <p>How can I do this correctly?</p>