Python Dict Questions
Python Dict Questions
3. Find Key with Maximum Value. Also find sum of all values
Find the key in a dictionary with the highest value.
Example: d = {'a': 10, 'b': 50, 'c': 30} # Expected Output: 50,
90
Also, what will be output of the code if the given inputs are keys = [‘s’,
‘i’, ‘v’, ‘a’, ‘y’, ‘y’, ‘a’], values = [‘B’, ‘A’, ‘L’, ‘L’, ‘A’, ‘Y’, ‘A’]
1.