Simple forloop - Python
<p>this is probably too simple of a question, but here I go.</p>

<p>I have paginated items, each page contains 100 items. The program fetches items till it reaches the item index specified within item_num</p>

<p>This is what I have:</p>

<pre><code>item_num = 56

range(0, item_num/100 + (item_num%100 &gt; 0)):
  get_next_100()
</code></pre>

<hr>

<p>I'm not really sure about the <strong>(item_num%100 > 0) boolean</strong> I used.</p>

<p>Is there anything wrong with what I did?</p>
