Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following algorithms correctly counts the number of digits in a given positive integer n in Python?
Count the number of zeros in n
Convert n to a string and return the length of the string
Repeatedly divide n by 10 and increment a counter until n becomes 0
Multiply n by 10 until the result is greater than 10
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!