STEP 10: We've set up both of our conditions! Let's check if at least one is True by using a new logical operator.

The logical operator or will return True if one or both sides are True. It is only False if both sides are False.

  • Go to and drag if or to the bottom of the program.
  • Replace this code choice·==·"yes" with the variable condition_1. Don't delete the or!
  • Just after the or, replace this code choice·==·"y" with the variable condition_2. Don't delete the colon!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)