title: How to solve ValueError is not in List? It's in the list
body: <p>How to solve ValueError is not in List problem? I don't understand what is wrong with my code.</p>
  
  <pre><code>  from urllib.request import urlopen
    from bs4 import BeautifulSoup
    html = urlopen("http://uk.reuters.com/business/quotes/financialHighlights?   symbol=AAPL.O")
  
    bsObj = BeautifulSoup(html,"html.parser")
    tag = bsObj.findAll("td")
    tagList = []
    for tagItem in tag:
        tagList.append(tagItem)
  
    print(tagList.index("&lt;td&gt;Dec&lt;/td&gt;"))
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "/Users/home/Desktop/development/x/code.py", line 11, in &lt;module&gt;
  print(tagList.index("&lt;td&gt;Dec&lt;/td&gt;"))
  ValueError: '&lt;td&gt;Dec&lt;/td&gt;' is not in list
  
   Process finished with exit code 1
  </code></pre>