On Apr 12, 3:31 am, "loial" <[EMAIL PROTECTED]> wrote: > OK, thanks for the replies > > One other thing...I need to update the values since they are basically > totals that I am accumulating. > > How do I update a specific value for a specific key?
mydict["keyvalue1"] returns the value, which in this case is a list. So, you could write: lst = mydict["keyvalue1"] lst[0] = 4 list.append("red") or you can do it directly: mydict["keyvalue1"][0] = 4 mydict["keyvalue1"].append("red") -- http://mail.python.org/mailman/listinfo/python-list