python buffer int to string with leading zeros code example Example: unpad zeros from string python my_str='0001' my_str.lstrip('0')