Re: adding multiple new values to the same key in a dictionary

2009-08-12 Thread Dave Angel
Dave Angel wrote: Krishna Pacifici wrote: Hi, I want to be able to add multiple new values to a key in a dictionary. I have tried the following: sec_dict_clean= {88: [87, 89, 78, 98], 58: [57, 59, 48, 68], 69: [79], 95: [94, 96, 85]} for i in range(len(sec_dict_clean.values())): for j in

Re: adding multiple new values to the same key in a dictionary

2009-08-11 Thread Dave Angel
Krishna Pacifici wrote: Hi, I want to be able to add multiple new values to a key in a dictionary. I have tried the following: sec_dict_clean= {88: [87, 89, 78, 98], 58: [57, 59, 48, 68], 69: [79], 95: [94, 96, 85]} for i in range(len(sec_dict_clean.values())): for j in range(len(sec_dict_