title: How to take inverse of 2 raise to something in python2.5 (strict)
body: <p>I have a number say <code>37</code>. 37 lies between <code>2**5 and 2**6</code>. I want to write a function which takes the number as argument and returns the power of its lower bounderies.</p>
  
  <pre><code>def foo(x=37)
  {
   result =//Here calculation
   return result
  }
  </code></pre>
  
  <p>In the above example the return should be <code>5</code> because its lower limit is <code>2**5 and 5</code> is its power.</p>
  
  <p><strong>Note:</strong> Must be care about python 2.5</p>
  
  <p>Thanks in advance.</p>