Log in
← All problems

Count the digits

easyBasics10 XP

Return how many digits the whole number n has (ignore a minus sign). 0 has one digit.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.