STEP 3: We can use the Python keyword and to test two things at the same time: choice and computer_choice.

  • In LOGIC, go to and drag out if and. Drop it 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 from sprite 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)