Guest User

Untitled

a guest
Feb 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. divisors = []
  2. num = int(input("Enter a number: "))
  3.  
  4. for i in range(1, num + 1):
  5. if num % i == 0:
  6. divisors.append(i)
  7.  
  8. print(divisors)
Add Comment
Please, Sign In to add comment