On Sat, Jun 22 2013,Mark Lawrence wrote:

[snipped 7 lines]

>>>>> b = { 'a': [4, 5]}
>>>>> list.append(b.get('a'),'c')
>>>>> b
>> {'a': [4, 5, 'c']}
>>>>>
>>
>>
>> as in, shouldn't it be
>>
>> b['a'] = list.append(b.get('a'),'c')
>>
>> which doesn't seem to work.
>>
>>   sivaram
>>   --
>
> b['a'].append('c')


arrgh! I should have known this.  Thank you for making it obvious to
 the noob.

 sivaram
 -- 

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to