Loading...
Loading...
Loading...
Marks arrive as CSV lines. Print the name of the student with the highest mark. If two students tie, print the one who appears first.
name,mark (no header).Example
Input
3 Asha,82 Ravi,91 Meena,91
Output
Ravi
Ravi and Meena tie; Ravi comes first.
Try the problem first. Open one hint at a time.
Convert the mark to an int, not text, or "9" would beat "85".
max returns the first of equal items when you give it a key.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor