calculate how many times a number can be halved before reaching 1
<p>The questions is to write a function that tells how many times 'n' can be halves before reaching 1. I have been working on making this code work, but its not working. I thought i had it with this one, but when I try to test it with mystery(4) or with anything else, it returns 0 ever time. Can someone tell me what needs fixing. Here is what I have:</p>

<pre><code>def mystery(n):
    count = 0
    while n &gt; 0
      if n//2 &gt; 1:
         count = count + 1
    print (count)
</code></pre>
