Last active
August 29, 2015 14:19
-
-
Save Droogans/6d497fb4993982303c37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_negative(number): | |
return number < 0 | |
def pos_neg(a, b, negative): | |
if negative: | |
return a < 0 and b < 0 | |
return len(set(map(is_negative, [a, b]))) > 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment