What's the best way to append to the list which is the value to a dict key?
I did the following based on the docs and I'm not sure why it works >>> 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 -- _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor