Python String Type error
<pre><code>word = input("Please enter two words");
word1 = word
number = len(word);
space = '/'  
for i in range(number):
    if(word1[i] == " "):
        word1[i] = space;
print(word1)
</code></pre>

<p>I am getting the following error: "TypeError: 'str' object does not support item assignment"
It doesn't like that I am replacing word1[i] = space;
I don't understand why because they are both strings.</p>