Truth tables
def andor1(val1, val2):
result = val1 and val2
return result
Function Call | Return Value | |||
---|---|---|---|---|
andor1(True, True) | → | |||
andor1(True, False) | → | |||
andor1(False, True) | → | |||
andor1(False, False) | → |
Experiment with this code on Gitpod.io