Guest User

Untitled

a guest
Nov 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. num=int(input('choose a number: '))
  2. divisor=[]
  3. for i in range(1,(num+1)):
  4. if num % i == 0:
  5. divisor.append(i)
  6. print(divisor)
Add Comment
Please, Sign In to add comment