STEP 4: Let's use the user's response in an if-else statement!

  • In LOGIC, go to and drag if else indented inside ask_user_question().
  • Then, in , drag Boolean Variable indented inside your if statement.
  • Finally, drag Boolean Variable indented inside your else statement.
  • We'll talk more about these variables in the next activity!

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)