Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
lstrip and len solution in Clear category for Beginning Zeros by kkkkk
def beginning_zeros(number: str) -> int:
"""Return number of zeros at beginning of string."""
return len(number) - len(number.lstrip('0'))
March 6, 2020