Skip to content

Instantly share code, notes, and snippets.

@skrolikowski
Last active January 21, 2019 05:05
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 skrolikowski/7697d1ec2cf2398ef44fc9df3c7d9130 to your computer and use it in GitHub Desktop.
Save skrolikowski/7697d1ec2cf2398ef44fc9df3c7d9130 to your computer and use it in GitHub Desktop.
Divisor Function
def divisors(num):
return [x in range(1, num // 2) if num % x == 0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment