On 02.01.16 18:33, Tim Chase wrote: > or mathematically: > > sum(1 for _ in itertools.takewhile( > lambda x: n % (10**x) == 0, > itertools.count(1))) The mathematician would prove that the result is not larger than 100/4.