Skip to content

Instantly share code, notes, and snippets.

@odanga94
Created May 12, 2017 07:55
Show Gist options
  • Save odanga94/870af6b173734c56b22e657d7b967a7a to your computer and use it in GitHub Desktop.
Save odanga94/870af6b173734c56b22e657d7b967a7a to your computer and use it in GitHub Desktop.
PracticePython/Exercise4
list_ = []
def divisor_check():
num = int(input("Enter the number you wanna check:"))
divisor = 1
for i in range(num):
if num % divisor == 0:
list_.append(divisor)
divisor += 1
divisor_check()
print(list_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment