# Attempts to count the factors of 10. # Raises an error; not an example to follow. # Returns true if n is a multiple of (is divisible by) x. def is_multiple(x): return n % x == 0 def main(): n = 10 count = 0 for i in range(1, n + 1): if is_multiple(i): count += 1 print("count =", count) main()