Created
May 12, 2017 07:55
-
-
Save odanga94/870af6b173734c56b22e657d7b967a7a to your computer and use it in GitHub Desktop.
PracticePython/Exercise4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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