title: How to efficiently iterate variable number in Selenium Webdriver using Python?
body: <p>I am using selenium webdriver with Python on IE and the code mentioned below is working fine but I need to make this in a loop.
  Please suggest.
  termsName0 may be 2 ,3 4 or N numbers</p>
  
  <p>Code:</p>
  
  <pre><code>Select(self.driver.find_element_by_name("termsName0")).select_by_visible_text("Blank No Text")
  Select(self.driver.find_element_by_name("termsName1")).select_by_visible_text("Blank No Text")
  Select(self.driver.find_element_by_name("termsName3")).select_by_visible_text("Blank No Text")
  </code></pre>