Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_list = []
- def divisor_practice():
- num = int(input("Please enter a number to find its divisors: "))
- for i in range(1, num):
- if num % i == 0:
- my_list.append(i)
- print("The numbers divisible by your number are: " + str(my_list))
- divisor_practice()
Add Comment
Please, Sign In to add comment