Time delay loop in python
<p>i have</p>

<pre><code>for i in xrange(repeat):
  #does my stuff
  time.sleep(10)
</code></pre>

<p>BUT, i don't want it to sleep if it's the last run. Meaning, if there's no more iteration, don't sleep</p>

<p>How do I gracefully handle this?</p>
