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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!