Created
February 22, 2018 19:31
-
-
Save JayeshTiwari03/ef7b25c92ebdbeed81b8037c182005bb to your computer and use it in GitHub Desktop.
Python Exercise on http://www.practicepython.org
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 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