STEP 8: Time to make our next if statement. Remember, conditionals are in the LOGIC tab.

  • Go to and drag If to the bottom of your program, OUTSIDE the first if statement.
  • Change the variable in the test line to rand_answer. Change the test value to 2.
  • Go to and drag out Say. Drop it inside of your second if statement.
  • Change the name in front of .say() to tim.

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)