Skip to content

Instantly share code, notes, and snippets.

@SuperLeo23
Last active November 23, 2021 11:21
Show Gist options
  • Save SuperLeo23/a18f1e64e22c346b44cee06708073002 to your computer and use it in GitHub Desktop.
Save SuperLeo23/a18f1e64e22c346b44cee06708073002 to your computer and use it in GitHub Desktop.
Calculate divisors
while True:
num = float(input("Number: "))
def is_div(number):
return(number).is_integer()
for i in range(1, int(num)):
result = is_div(num / i)
if result == True:
print(int(num / i))
@SuperLeo23
Copy link
Author

Just trying some stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment