Dictionaries

Gary Herron gherron at islandtraining.com
Wed Oct 18 13:46:30 EDT 2006


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




More information about the Python-list mailing list