Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created May 7, 2016 07:42
Show Gist options
  • Save rjshekar90/fdec8777127ccf5fbdeb9ef9e96dd9e6 to your computer and use it in GitHub Desktop.
Save rjshekar90/fdec8777127ccf5fbdeb9ef9e96dd9e6 to your computer and use it in GitHub Desktop.
# Divisors
# -*- coding: utf-8 -*-
# Divisors
number = int(raw_input(">>> " ))
x = range (1, number+1)
for element in x:
if number % element == 0:
print element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment