Skip to content

Instantly share code, notes, and snippets.

@ysnerdem
Last active October 24, 2017 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysnerdem/484c685165fc21deda725aa3ac217567 to your computer and use it in GitHub Desktop.
Save ysnerdem/484c685165fc21deda725aa3ac217567 to your computer and use it in GitHub Desktop.
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