Solve problem "The maximum number of consecutive equal elements" online - Learn Python 3 - Snakify

The maximum number of consecutive equal elements


Statement

Given a sequence of integer numbers ending with the number 0. Determine the length of the widest fragment where all the elements are equal to each other.
Advertising by Google, may be based on your interests

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