STEP 8: Let's evaluate the entire Condition 1 (Condition 1a and Condition 1b). Both halves must be True!

  • From , drag in Boolean Variable and rename the my_var to condition_1.
  • Replace the value True with this logical statement: condition_1a and condition_1b
  • From , use Output Variable and edit it to see the value of condition_1 with a label.

The logical operator and results in True only if both sides of the statement are True.

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)