Solve problem "The number of distinct elements" online - Learn Python 3 - Snakify

The number of distinct elements


Given a list of numbers with all of its elements sorted in ascending order, determine and print the quantity of distinct elements in it.

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