How can i modify a key in a list of dictionaries?


#1

For example if i have list =[ {day:1,sum:4,type:"in"},{day:2,sum:6,type:"out"}]. How can i change day 2 to be 3?