STEP 8: There is one more outcome if the user types "rock".

  • Click LOGIC, go to and drag out if and. Drop it unindented at the bottom of your program.
  • Change the first test variable to choice and the second test variable to computer_choice.
  • In GRAPHICS, go to and drag out Set Text. Drop it indented inside the if and statement.
  • Change the variable name in front of the .set_text() command to result.

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)