Created
November 15, 2017 03:42
-
-
Save pejantantangguh/3d4393644480234f8ac60c9920ece5bd to your computer and use it in GitHub Desktop.
This file contains 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
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