[Tutor] Select distinct item form list

janos.juhasz@VELUX.com janos.juhasz@VELUX.com
Mon Feb 24 02:39:01 2003


Dear All,

Can someone show me a simple list comprehension to do the same thing as=

"Select distinct item form list" does in SQL

So i have a list
>>> l =3D (1,2,3,4,5,5,6,7,7,7,2)
but i would have just
l=3D(1,2,3,4,5,6,7)

I know i have seen this somewhere, but i cannot find it :(

Please CC me.
Best regards,
-----------------------
Juh=E1sz J=E1nos
IT department
=