Solve problem "The length of the sequence" online - Learn Python 3 - Snakify

# The length of the sequence

## Statement

Given a sequence of non-negative integers, where each number is written in a separate line. Determine the length of the sequence, where the sequence ends when the integer is equal to 0. Print the length of the sequence (not counting the integer 0). The numbers following the number 0 should be omitted.

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