title: Python Basic Math Algorithm Function
body: <p>I am attempting to understand exactly how this function works, I have been playing around with it but I am unsure.</p>
  
  <ul>
  <li><p>What I know: anything with a remainder of 1 (odd number) will return 0</p></li>
  <li><p>What I am confused about: When I calculate it I got <code>2</code> which would result in but isn't '36//2 + 1' equal to '19' and not '2'?</p></li>
  </ul>
  
  <p>Code:</p>
  
  <pre><code>def anon(n):
      if n % 2 == 1:
          return 0
      else:
          return 1 + anon(n//2)
  
  print(anon(36))
  </code></pre>