大一非计算机专业Python

Write a python to find the number of zeros at the end of a factorial of a given positive number.  
求给定正数的阶乘末尾的零个数。

def calcZero(n):
    z = 0
    for i in range(5, n + 1, 5):
        x = i
        while x % 5== 0:            
            z += 1
            x //= 5
    return z


res = calcZero(100)
print(res)