Solve problem "The index of the maximum of a sequence" online - Learn Python 3 - Snakify

The index of the maximum of a sequence


A sequence consists of integer numbers and ends with the number 0. Determine the index of the largest element of the sequence. If the highest element is not unique, print the index of the first of them.

In all the problems input the data using input() and print the result using print().