Question: Write a Python function keyOfMaxValue() that gets as parameter a dictionary containg values of the same type (either all values are string or all values
Write a Python function keyOfMaxValue() that gets as parameter a dictionary containg values of the same type (either all values are string or all values are number). The function will return the key of the element with maximum value. Hint: After finding the maximum value, you may use a for loop with the items() method to get the key corresponding to maximum value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
