Last active
December 5, 2025 07:43
-
-
Save omas-public/ff24f9d05ffd2cecadbaa41aa0d92d3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 pos_neg(a, b, negative=False): | |
| both_neg = lambda a,b: a < 0 and b < 0 | |
| pos_neg = lambda a,b: a < 0 < b | |
| return both_neg(a,b) if negative else pos_neg(a, b) or pos_neg(b, a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment