retrieving the elements from list: python
<p>Probably a very naive question:</p>

<p>I have a list:</p>

<pre><code>color = ["red","blue","red","green","blue"]
</code></pre>

<p>Now, I want to iterate through the list</p>

<pre><code>for c in color:
   # color is "red"
     get the rest of the colors except this red
    so rest = ["blue","red","green",blue"]
</code></pre>

<p>in next iteration:</p>

<pre><code>    c = blue
    rest = ["red","red","green","blue"]
</code></pre>

<p>Eh. why do i have a feeling that this is pretty trivial to do..and there is probably a one line command which can solve this out?
Thanks</p>
