title: Better way to remove trailing zeros from an integer
body: <p>I'm an inexperienced programmer. I'm trying to remove trailing zeros from a whole number, an integer, for a project I've set myself in python.</p>
  
  <p>I have managed to do this but there must be a better way than the monstrosity I have concocted!</p>
  
  <pre><code>def removeZeros(number):
      return int(str(int(str(number)[::-1]))[::-1])
  </code></pre>
  
  <p>Essentially I'm turning the integer into a string, reversing the string, turning it back into an integer---which removes the now leading zeros, turning it back into a string and reversing it; and finally turning it back into an integer to return it.</p>
  
  <p>Any help would be appreciated.</p>