STEP 9: There is one more option if the player picks rock: the computer could pick scissors!

  • In the most recent if-statement, change the first test value to "rock".
  • In the same compound if-statement, change the second test value to "scissors".
  • Change the string in .set_text() to "Player wins!"

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)