Searching and manipulating lists of tuples

MTD marc.t.davies at gmail.com
Mon Jun 12 09:21:17 EDT 2006


> Yes, use the proper tool for the job.  Tuples are immutable (they are
> read-only once created).  Instead use a dictionary.  They key would be
> your string, the value would be the count.

Wow, I really should have thought of that! Thanks.




More information about the Python-list mailing list