STEP 5: Now we need to tell the program what to do if both players choose "rock".

  • Change the string in .set_text() to "Tie Game!".

Type rock as your choice. Keep running your program until the computer picks rock in order to test the compound if-statement. If the values of choice and computer_choice are "rock", the text should say Tie Game!

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)