# Counts the factors of 10. # Returns true if n is a multiple of (is divisible by) x. def is_multiple(x, n): return n % x == 0 def main(): n = 10 count = 0 for i in range(1, n + 1): if is_multiple(i, n): count += 1 print("count =", count) main()