title: ValueError: list.remove(x): x not in list
body: <p>What is wrong in my code, but I can get my expected result.</p>
  
  <p>I am trying to remove all "#" in the list.</p>
  
  <p>funds_U is the list of data:</p>
  
  <pre><code>In [3]: funds_U
  Out[3]: 
  [u'#',
   u'#',
   u'MMFU_U',
   u'#',
   u'#',
   u'AAI_U',
   u'TGI_U',
   u'JAS_U',
   u'TAG_U',
   u'#',
   u'#',
   u'AAT_U',
   u'BGR_U',
   u'BNE_U',
   u'IGE_U',
   u'#',
   u'#',
   u'DGF_U',
   u'BHC_U',
   u'FCF_U',
   u'SHK_U',
   u'VCF_U',
   u'#',
   u'JEM_U',
   u'SBR_U',
   u'TEM_U',
   u'#',
   u'#',
   u'BAB_U',
   u'BGA_U',
   u'#']
  </code></pre>
  
  <p>The following is the code:</p>
  
  <pre><code>In [4]: for fund_U in funds_U[:]:
     ...:     funds_U.remove(u"#")
     ...:     
  </code></pre>
  
  <p>The following is the error:</p>
  
  <pre><code>ValueError                                Traceback (most recent call last)
  &lt;ipython-input-4-9aaa02e32e76&gt; in &lt;module&gt;()
        1 for fund_U in funds_U[:]:
  ----&gt; 2     funds_U.remove(u"#")
        3 
  
  ValueError: list.remove(x): x not in list
  </code></pre>