Class Topper Finder

Medium
#dicts #logic

Input: `d` (dict of name:marks). Return: Name of student with highest marks.

Example

Input: {'A': 90, 'B': 80}
Output: 'A'
Need a hint?
  • Track max value and corresponding key
Run your code to see output