The best result
Task
Each line of the file vysledky.txt holds a name and a number of points (a whole number) separated by a space. Skip empty lines. The program prints the line with the most points as name points. If several names share the top score, print the one that comes first in the file.
For the file
the program prints Ema 47.
Examples
Input
(no input)
Expected output
Ema 47
After you submit, 5 hidden tests will also check your solution: one line, the best at the end, empty lines, all zeros, comparing numbers, not texts.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.