title: Editing elements in a list in python
body: <p>How do I remove a character from an element in a list?</p>
  
  <p>Example:</p>
  
  <pre><code>mylist = ['12:01', '12:02']
  </code></pre>
  
  <p>I want to remove the colon from the time stamps in a file, so I can more easily convert them to a 24hour time.  Right now I am trying to loop over the elements in the list and search for the one's containing a colon and doing a substitute.</p>
  
  <pre><code>for num in mylist:
      re.sub(':', '', num)
  </code></pre>
  
  <p>But that doesn't seem to work.</p>
  
  <p>Help!</p>