dictionary idiom needed

Scott David Daniels Scott.Daniels at Acm.Org
Thu Dec 11 14:50:06 EST 2008


Brandon wrote:
> I have a series of lists in format ['word', 'tagA', 'tagB'].  I have
> converted this to a few dicts, such as one in which keys are tuples of
> ('word', 'tagB'), and the values are the number of times that key was
> found. ....

Smells like homework without a particular application.

--Scott David Daniels
Scott.Daniels at Acm.Org




More information about the Python-list mailing list