title: Is there a way to make run a function every x th time a loop run - python
body: <p>let's say I have a loop that run over a list that contains numbers from 1 to 100 ( 100 element ), and I want to print i ( i is element in list  <code>for i in list:</code> ) every 25th time the loop runs so it after running it prints :
  25
  50
  75
  100</p>