Skip to content

Instantly share code, notes, and snippets.

@sepulchered
Created November 8, 2017 21:57
Show Gist options
  • Save sepulchered/9be1315b5bd5a49d4e61fca93ea7bdd9 to your computer and use it in GitHub Desktop.
Save sepulchered/9be1315b5bd5a49d4e61fca93ea7bdd9 to your computer and use it in GitHub Desktop.
def positive_division(num, den):
res = num / den
if res <= 0:
return None
return res
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment