Write a python function to find the factors of a number
Topic: Write a python function to find the factors of a number
Solution
def print_factors(x): print("The factors of",x,"are:") for i in range(1, x + 1): if x % i == 0: print(i) num = 63 print_factors(num)
List all Python Programs