title: How do I get the last numbers of a number variable?
body: <p>I know how to get the <em>last</em> digit of a number variable:</p>
  
  <pre><code>num = 21
  if num % 10 == 1:
      num = num % 10
      print '%s' % num
  </code></pre>
  
  <p>Which will return 1.
  But how do I get the last <em>few</em> digits of a variable?
  Eg. I had</p>
  
  <pre><code>bytes = input("Bytes: ")
  </code></pre>
  
  <p>for the sample, I wanted to strip off the last 8 digits to convert it into an amount in GB. Now I need to strip of the last 8 digits and save it to another variable for another use. Then using the 8 remaining digits and strip off 5 to get MB. How do I strip off some digits off the end and save it to another variable? </p>