title: Python - Removing space in a string without using built in methods
body: <p>I am trying to make/get a new string which doesn't contain spaces 
  For example,</p>
  
  <pre><code>string1 = "my music is good"
  </code></pre>
  
  <p>should become</p>
  
  <pre><code>joinedstring = "mymusicisgood"   #this is the one i want
  </code></pre>
  
  <p>At first i was able to do this by using the built in string method</p>
  
  <pre><code>string1 = "my music is good"
  joinedstring = string1.replace(" ","")
  </code></pre>
  
  <p>But now I am trying to achieve the same results without any string method, which means I have to make my own function, My thought was to make a loop which searches for the index of the "space" in a string then try to delete indexes to make a new string. 
  But here comes the problem, strings are immutable so deleting say <code>del string[index]</code> doesn't work. Any help please!</p>