I have a dictionary which has value as a list.
dictionary = {
'C1' : [10,20,30]
'C2' : [20,30,40]
}
Let’s say I want to increment all the values in list of C1 by 10, how do I do it?
dictionary.get('C1') gives me the list but how do i update it?
1 Answer