Write a program in Python that asks the user to enter an integer n and displays all the divisors of this number.
# ask the user to enter a value of n
n = int(input("Type the value of integer n "))
# iterate through all integers less than or equal to n
for i in range(1,n+1):
# test if i is a divisor of n
print("The number ",i," is a divisor of ",n)