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