Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!