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 integer division; you should not use math.log(), math.log10(), or conversion to string

Q&A Education