write a python solution for this question Given the following list of dictionaries in output22, change the values of the
Posted: Tue Jul 05, 2022 10:27 am
write a python solution for this question
Given the following list of dictionaries in output22, change thevalues of the dictionaries based on the length of its correspondingkey.
output22 = {{"John": 0, "Danise": 0, "Kelly": 0}, {"Python": 0,"Java": 0}, {"Toy": 0}, {"Apple": 0, "Grapes": 0}}
The expected output of output22 will be in the following format:[{'John': 4, 'Danise': 6, 'Kelly': 5}, {'Python': 6, 'Java': 4},{'Toy': 3}, {'Apple': 5, 'Grapes': 6}]
Given the following list of dictionaries in output22, change thevalues of the dictionaries based on the length of its correspondingkey.
output22 = {{"John": 0, "Danise": 0, "Kelly": 0}, {"Python": 0,"Java": 0}, {"Toy": 0}, {"Apple": 0, "Grapes": 0}}
The expected output of output22 will be in the following format:[{'John': 4, 'Danise': 6, 'Kelly': 5}, {'Python': 6, 'Java': 4},{'Toy': 3}, {'Apple': 5, 'Grapes': 6}]