LearnPy Hub
← NumPy problems
Easy

Max and Position

Read integers and print the largest value and its index (first occurrence) using max() and argmax().

Input

One line of integers.

Output

Two numbers.

Sample 1

Input
3 9 2 9
Output
9 1

Sample 2

Input
5
Output
5 0
solution.py
Output appears here
Max and Position · Python practice problem · LearnPy Hub