title: Python run code every 100th loop item
body: <p>I have this simple loop in Python that I am using..</p>
  
  <pre><code>for i, numbercode in enumerate(numbercode_list):
      print ("Item : %s" %i )
      driver.close()
      driver = init_driver()
  </code></pre>
  
  <p>How would I go about just running the last two lines every 100th loop item?  Currently it runs them every time.</p>