title: Loop though HTML ID in Python
body: <p>I'm having some trouble with looping through these IDs in Python.
  I used beautifulsoup to parse a website and would like to loop through TD in these 5 TR: </p>
  
  <p><strong>id="dgrDispill_DXDataRow0</strong> to <strong>id="dgrDispill_DXDataRow4</strong></p>
  
  <p>I tried to use something like this: </p>
  
  <pre><code>i=0
  for tr in tableau_main.findAll('tr'):
      for td in tr.find(id = "dgrDispill_DXDataRow"+'i'):
          i+= 1
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/p3XKi.png" rel="nofollow noreferrer">HTML</a></p>