title: Remove the leading zero before a number in python
body: <p>I have a string which correspond to a number but with several leading zeros before it. What I want to do is to remove the zeros that are before the number but not in the number. For example "00000001" should be 1 and "00000010" should be 10. I wrote  code that remove zeros but also the tailing one:</p>
  
  <pre><code>segment = my_str.strip("0")
  </code></pre>
  
  <p>That code removes all zeros. How can I only remove the leading zeros before the number.</p>