Question: Problem 2- decimal.py: Number of decimal digits [10 points] Write a function digits that accepts a non-negative integer argument n and returns the number of
![Problem 2- decimal.py: Number of decimal digits [10 points] Write a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f461f3c99cb_89166f461f364407.jpg)
Problem 2- decimal.py: Number of decimal digits [10 points] Write a function digits that accepts a non-negative integer argument n and returns the number of digits in it's decimal representation. For credit, you should implement this using a loop and repeated division; you should not use math.log ) math.log10,or conversion to string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
