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
Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
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