title: Beautiful Soup Finding if a tag exists
body: <p>I've been trying to figure this code out with using Beautiful Soup. What I want it to do since it I am pulling various pages and they don't have consistent tags, if it finds one tag to run that code and if it finds another tag to run another code, but I've had no success so far, I'd appreciate some help:</p>
  
  <p>I am not getting any error messages, I do not know if the loop breaks or if it just skips it but it's not printing anything.</p>
  
  <p>The URLs are:</p>
  
  <ol>
  <li><p><a href="http://store.steampowered.com/app/271590/Grand_Theft_Auto_V/" rel="nofollow noreferrer">http://store.steampowered.com/app/271590/Grand_Theft_Auto_V/</a></p></li>
  <li><p><a href="http://store.steampowered.com/app/578080/PLAYERUNKNOWNS_BATTLEGROUNDS/" rel="nofollow noreferrer">http://store.steampowered.com/app/578080/PLAYERUNKNOWNS_BATTLEGROUNDS/</a></p></li>
  </ol>
  
  <p>The code I have is:</p>
  
  <pre><code>for price in pricing:
  
          if pricing.find('discount_final_price'):
              game_price = price.find('discount_final_price')
              gamprice = game_price[i].text
              print("Price:" + gamprice)  
          else :
              game_price = price.find("game_purchase_price price")
              gamprice = game_price[i].text
              print("Price:" + gamprice)
  </code></pre>