Count Digits Function

Python Easy 3 views
Back to Questions

Problem Description

One non-negative integer n is provided. Make function digits(n) and output digit count (for n=0 count is 1).

Input Format

One integer n.

Output Format

One integer count.

Sample Test Case

Input:
1000
Output:
4

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next