how to remove 0 at end of the string python code example Example: cut 0s on string python >>> '00000010'.lstrip('0') '10'