Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
My first usage of rstrip )) solution in Clear category for End Zeros by piter239
def end_zeros(num: int) -> int:
return len(str(num)) - len(str(num).rstrip('0'))
April 21, 2020