Skip to content

Instantly share code, notes, and snippets.

@pejantantangguh
Created November 15, 2017 03:42
Show Gist options
  • Save pejantantangguh/3d4393644480234f8ac60c9920ece5bd to your computer and use it in GitHub Desktop.
Save pejantantangguh/3d4393644480234f8ac60c9920ece5bd to your computer and use it in GitHub Desktop.
num = int(input("Please put a number to divide"))
divisorList = []
listRange = list(range(1,num+1))
for number in listRange:
if num % number == 0:
divisorList.append(number)
print (divisorList)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment