
Number Length
We have prepared a set of Editor's Choice Solutions.
You will see them first after you solve the mission. In order to see all other solutions you should change the filter.

You have a non-negative integer. Try to find out how many digits it has.
Input: A non-negative integer (int).
Output: An integer (int).
Examples:
assert number_length(10) == 2 assert number_length(0) == 1 assert number_length(4) == 1 assert number_length(44) == 2