title: How to find the power required to 2 for a known value in Python
body: <p>Could someone please tell me a method to find power of <code>2</code> required to obtain a known value. For example, let's say I need to find the power of two which gives the value 32. In other words, if I know a certain value, how to find the power of two which give that value.</p>
  <pre><code>if the given value is 64 how to get the power of two as 8
  </code></pre>
  <p>I have searched whether similar questions have been asked in stackoverflow before, but unfortunately I could not find any.  At the moment I have nothing on my hand as an attempt taken, sorry for that. 
  Any help is greatly appreciated in advance.</p>