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

 

 

If Statementsif_stmt3

prev  |  next  |  chance
def if_stmt3(x, y):
    if x > 10 and y:
        return x + 10
    else:
        return x
Function Call  Return Value
if_stmt3(15, True)
if_stmt3(15, False)
if_stmt3(0, True)
if_stmt3(10, True)
if_stmt3(13, False)
if_stmt3(20, True)
if_stmt3(3, False)

Experiment with this code on Gitpod.io

⬅ Back