novice question

Leeds, Mark mleeds at mlp.com
Fri Mar 11 18:15:00 EST 2005


I have a dictionary grp that has lists

for each element ( excuse my terminology if it's

incorrect).

 

So gname might be automobiles, finance, construction etc

and grp[gname] is a list and this list

has elements that are strings

such as ["AAA","BBB","AAA","CCC"]

 

Is there a quick way to loop through

the grp dictionary and reduce the lists

so that each only contains unique elements ?

 

                                     thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050311/71654891/attachment.html>


More information about the Python-list mailing list