-3

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.

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
123
  • 1
  • 2
  • 1
    Does 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
  • 1
    We 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 Answers3

3
def function(a,b):
    if a >= 0 or b >= 0:
        #do something
rrrttt
  • 449
  • 2
  • 9
0

I believe you're asking how to construct a boolean:

if a >= 0 or b >= 0:
mauve
  • 2,707
  • 1
  • 20
  • 34
0

Maybe this

if a >= 0 or b >= 0

Kyrol
  • 3,475
  • 7
  • 34
  • 46
ISD
  • 984
  • 1
  • 6
  • 21