title: "Pythonic" for loop over integers 0 to k-1 except i
body: <p>I want to create a for loop that will go through the integers 0 to k-1, except for integer i.  (I'm comparing some lists of k items, and I don't need to compare item i in one list with item i in another list.)</p>
  
  <p>I have a fairly easy way to do it, but I keep thinking there's a more "Pythonic", elegant way to do it.</p>
  
  <p>What I'm doing is:</p>
  
  <pre><code>tocheck = range(k)
  del(tocheck[i])
  for j in tocheck:
  </code></pre>
  
  <p>It's easy enough, but one thing I like about Python is that it seems like there's always a clever one-line "Pythonic" trick for things like this.</p>
  
  <p>Thanks.</p>