from sets import Set
for akey in grp.keys():
grp[akey] = list(Set(grp[akey]))
On Friday 11 March 2005 03:15 pm, Leeds, Mark wrote:
> I have a dictionary grp that has lists
>
> for each element ( excuse my terminology if it's
>
> incorrect).
>
>
>
> So gname might be automobiles, finance, constru
Leeds, Mark wrote:
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