Solution 1

var1 = True and False
var2 = None is None
var3 = not True

# Use `or` to check if var1 or var3 evaluate to True
result1 = var1 or var3

# Now use two `or`s to combine all three variables and use `not`s to make the result evaluate to False
result2 = var1 or not var2 or var3

Or this

or statements are like and statements but only one condition needs to be true instead of all of them.

true_condition = True
false_condition = False
santiagos_birthday = False

result1 = santiagos_birthday or false_condition # False, because both sides are False
# Two `or` keywords to check three conditions
result2 = false_condition or true_condition or santiagos_birthday # True

Complete the code to practice with or statements.

Test Cases

test result1 - Run Test

def test_result1():
    assert result1 is False

test result2 - Run Test

def test_result2():
    assert result2 is False
var1 = True and False var2 = None is None var3 = not True # Use `or` to check if var1 or var3 evaluate to True result1 = ? # Now use two `or`s to combine all three variables and use `not`s to make the result evaluate to False result2 = ?