Unique Elements in a List

Paul Rubin http
Tue May 10 13:42:37 EDT 2005


"Fredrik Lundh" <fredrik at pythonware.com> writes:
> you forgot enumerate()

Oh, oops.

> and if you fix that, you'll notice that the output doesn't quite match
> the OP's spec:
> 
>     > what I am looking for is the unique elements 0.4 and 0.9 with their
>     > index from the list.

Oh, I see, he wanted the elements that only occur once.  I misunderstood.



More information about the Python-list mailing list