I need "or" in the sentence if a ~or~ b>=0: If there is really no solution, I'd be glad to be provided with alternative solutions to my problem if possible.
Asked
Active
Viewed 64 times
-3
-
1Does this answer your question? [How to test multiple variables against a value?](https://stackoverflow.com/questions/15112125/how-to-test-multiple-variables-against-a-value) – CDJB Nov 19 '19 at 14:51
-
1We need more details. What is the input and output? Are your trying to implement a logic `def or(a, b):` function? Or a `if a >= 0 or b >= 0:`? – Error - Syntactical Remorse Nov 19 '19 at 14:51
3 Answers
0
I believe you're asking how to construct a boolean:
if a >= 0 or b >= 0:

mauve
- 2,707
- 1
- 20
- 34
-
nevermind, Gabriel's answer is more correct, cause you asked for a function. – mauve Nov 19 '19 at 14:52
0