If I have a list of lists and a dictionary with a list as a value:
ll = [['wed', 'thurs'], ['fri', 'sat', 'sun']]
d = {'week1':['mon', 'tues']}
how do I add additional lists to the same key? such that I get:
new_d = { 'week1': ['mon', 'tues'], ['wed', 'thurs'], ['fri', 'sat', 'sun'] }
or
new_d = { 'week1': (['mon', 'tues'], ['wed', 'thurs'], ['fri', 'sat', 'sun']) }
if I do:
for item in ll:
new_d['week1'].append(item)
I wind up with something like:
{'week1':['mon', 'tues', ['wed', 'thurs'], ['fri', 'sat', 'sun']] }
which is not what I want