Fredrik Lundh wrote: > Lad wrote: > > >> The answer: the values should be added together and assigned to the key >> That is >> {'a':1, 'b':5} >> ( from your example below) >> >> Is there a solution? >> > > have you tried coding a solution and failed, or are you just expecting > people to code for free? > > </F> > > Right. This thread begins to look like someone with a homework assignment asking for code rather than attempting to try programming it up himself. I was happy to answer the first plea for help, but I'd be leery of providing any actual code.
Gary Herron -- http://mail.python.org/mailman/listinfo/python-list