I have dictionary like this.
dict1 = {\'key1\': [1,2,3,4] , \'key2\': [5,6,7]}
I want output like this.
dict1 = {\'key1\': 10