id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Boolean Expressionsandor1

prev  |  next  |  chance

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

⬅ Back