cut 0s on string python

>>> '00000010'.lstrip('0')
'10'

Here is what the above code is Doing:
1. We’re using the lstrip() method to remove the leading zeros from the string.
2. We’re using the ‘0’ character as the argument to the lstrip() method.
3. We’re storing the result of the lstrip() method in a new variable called ‘binary_string’.
4. We’re printing the value of the ‘binary_string’ variable.