Last active
October 24, 2017 22:29
-
-
Save ysnerdem/484c685165fc21deda725aa3ac217567 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
list = [1,2,3,4,5,6,7,8,9] | |
num = int(input("Enter the desired number of divisions:")) | |
temp = 0 | |
for i in list: | |
if i%num == 0: | |
temp += 1 | |
print("Number of complete divisions",temp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment