title: Function Digits, confused on the returned values
body: <pre class="lang-py prettyprint-override"><code>def digits(n):
      count = 0
      if n == 0:
        digits = int(n)+1
      while (n &gt; 0 ):
          count += 1
          n = n // 10
      return count
  
  print(digits(25))  # Should print 2
  print(digits(144)) # Should print 3
  print(digits(1000)) # Should print 4
  print(digits(0))   # Should print 1
  </code></pre>
  
  <pre><code>def digits(n):
  count = 0
  if n == 0:
    ___
  while (___):
      count += 1
      ___
  return count
  
  print(digits(25))  # Should print 2
  print(digits(144)) #Should print 3
  print(digits(1000)) # Should print 4
  print(digits(0))   # Should print 1
  </code></pre>
  
  <p>Here's the Question:
  Complete the function digits(n) that returns how many digits the number has. For example: 25 has 2 digits and 144 has 3 digits. 
  What am I missing?
  It returns 2
  3
  4
  0</p>