Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Itertools.takewhile 1-liner solution in Clear category for End Zeros by swagg010164
from itertools import takewhile
def end_zeros(num: int) -> int:
return len(list(takewhile(lambda x: x == "0", str(num)[::-1])))
Feb. 27, 2020
Comments: