I dispose of a dictionary whose values look like a list of strings (d_pro):
Code:
d_pro={'1': ['1,2,3', '4,5,6'], '2': ['1,2,3', '4,5,6']}
I'd like to turn it into a dictionary whose values look like a list of lists (expected output in d_pro_list) for further processing:
Code:
d_pro_list= {'1': [['1,2,3'], ['4,5,6']], '2': [['1,2,3'], ['4,5,6']]}
I'm trying the given code:
Code:
d_pro_list={}
for k in d_pro.keys():
...