title: Confusion to read html table contents using BeautifulSoup?
body: <p>here is the <code>HTML</code> content:</p>
  
  <pre><code>&lt;table cellspacing="1" cellpadding="0" class="data"&gt;
  &lt;tr class="colhead"&gt;
              &lt;th colspan="3"&gt;Expression&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr class="colhead"&gt;
              &lt;th&gt;Task&lt;/th&gt;
              &lt;th&gt;Action&lt;/th&gt;
              &lt;th&gt;List&lt;/th&gt;
  &lt;/tr&gt;           
  &lt;tr class="rowLight"&gt;
      &lt;td width="40%"&gt;
              Task1
          &lt;/td&gt;
          &lt;td width="20%"&gt;
               Assigned to 
          &lt;/td&gt;
          &lt;td width="40%"&gt;
               Harry
      &lt;/td&gt;
  
  &lt;/tr&gt;           
  &lt;tr class="rowDark"&gt;
       &lt;td width="40%"&gt;
                      Task2
                  &lt;/td&gt;
                  &lt;td width="20%"&gt;
                       Rejected by 
                  &lt;/td&gt;
                  &lt;td width="40%"&gt;
                      Lopa 
                  &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr class="rowLight"&gt;
      &lt;td width="40%"&gt;
              Task5
          &lt;/td&gt;
          &lt;td width="20%"&gt;
               Accepted By 
          &lt;/td&gt;
          &lt;td width="40%"&gt;
              Mathew
          &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Now I have to get the values as below : (the below table is nothing but an Excel table,that i will build up,once reached to the values.)</p>
  
  <pre><code>Task    Action        List
  Task1   Assigned to   Harry
  Task2   Rejected by   Lopa
  Task5   Accepted By   Mathew
  </code></pre>
  
  <p>A lay man solution what I know as below:</p>
  
  <pre><code>   from bs4 import BeautifulSoup
     soup = BeautifulSoup(source_URL)
  
  alltables = soup.findAll( "table", {"border":"2", "width":"100%"} )
  
  t = [x for x in soup.findAll('td')]
  
  [x.renderContents().strip('\n') for x in t]
  </code></pre>
  
  <p>But in my above <code>HTML</code> content such structure not present,so how to approach? Please guide me here!</p>