Skip to content

Instantly share code, notes, and snippets.

@sumon328
Created August 16, 2020 08:33
Show Gist options
  • Save sumon328/6d5db188afcb75a82079ffbc2b1f110f to your computer and use it in GitHub Desktop.
Save sumon328/6d5db188afcb75a82079ffbc2b1f110f to your computer and use it in GitHub Desktop.
print("\n___________Welcome to Divisor Finder___________")
__author__ = 'jeffreyhunt'
num = int(input("Please choose a number to divide: "))
listRange = list(range(1,num+1))
divisorList = []
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