A more pythonic way of iterating a list while excluding an element each iteration
<p>I have the following code:</p>

<pre><code>items = ["one", "two", "three"]

for i in range(0, len(items)):
    for index, element in enumerate(items):
        if index != i:
            # do something with element
</code></pre>

<p>Basically I want to exclude every element once and iterate the rest. So for the list I have above, I'd like the following iterations:</p>

<ol>
<li>"two", "three"</li>
<li>"one", "three"</li>
<li>"one", "two"</li>
</ol>

<p>The code I've written now seems a little C++-ish, is there a better solution? (I do not want to hold all possible lists in a variable)</p>

<p>EDIT: I didn't state this but the lists size isn't necessarily 3. It can be of any size.  </p>

<p>EDIT 2: It seems there's another misunderstanding: if I have a list of N, then I want N lists of size N-1, each missing an element from the original list.</p>

<p>EDIT 3: A list with 4 items, should give this result:</p>

<ol>
<li>1, 2, 3</li>
<li>1, 3, 4</li>
<li>1, 2, 4</li>
<li>2, 3, 4</li>
</ol>
