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

 

 

If Statementsif_stmt4

prev  |  next  |  chance
def if_stmt4(x, y, z):
    if x and y > z:
        return y
    else:
        return z
Function Call  Return Value
if_stmt4(True, 3, 1)
if_stmt4(False, 3, 1)
if_stmt4(True, 10, 3)
if_stmt4(False, 11, 3)
if_stmt4(False, 51, 32)
if_stmt4(True, 1, 0)

Experiment with this code on Gitpod.io

⬅ Back