STEP 11: Let's tell the user if their guess was too high. First we need to test if guess is greater than rand_num.

Just like in math, > tests if the test variable is greater than the test value.

  • Go to and drag Greater Than? inside the for-loop so it only has a ···· in front of it.
  • Change the test variable from my_var to guess.
  • Change the test value from 0 to rand_num.

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)