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

 

 

Warmup 1simple_choice2

prev  |  next  |  chance

This is a description of simple_choice2

def simple_choice2(sunny, raining):
    if (sunny or raining):
        return sunny
    return not raining
Function Call  Return Value
simple_choice2(True, True)
simple_choice2(True, False)
simple_choice2(False, True)
simple_choice2(False, False)

Experiment with this code on Gitpod.io

Work on a similar problem on CodingBat.com

⬅ Back