Guest User

Untitled

a guest
Jan 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. my_list = []
  2.  
  3.  
  4. def divisor_practice():
  5. num = int(input("Please enter a number to find its divisors: "))
  6. for i in range(1, num):
  7. if num % i == 0:
  8. my_list.append(i)
  9. print("The numbers divisible by your number are: " + str(my_list))
  10.  
  11.  
  12. divisor_practice()
Add Comment
Please, Sign In to add comment