title: Get size in Bytes needed for an integer in Python
body: <p>How can I find out the number of Bytes a certain integer number takes up to store?</p>
  <p>E.g. for</p>
  <ul>
  <li>hexadecimal <code>\x00</code> - <code>\xff</code> (or decimal <code>0</code> - <code>255</code> = binary <code>0000 0000</code> - <code>1111 1111</code>) I'm looking to get 1 (Byte),</li>
  <li>hexadecimal <code>\x100</code> - <code>\xffff</code> (or decimal <code>256</code> - <code>65535</code> = binary <code>0000 0001 0000 0000</code> - <code>1111 1111 1111 1111</code>) would give me 2 (Bytes)</li>
  </ul>
  <p>and so on.</p>
  <p>Any clue for hexadecimal or decimal format as the input?</p>