STEP 11: Let's tell the player that they tied if they picked "paper" and the computer also picked "paper".

Remember to change the variable names and values in the if-statement. Use the other if-statements as a guide.

  • Add an if and statement to test if choice equals "paper" and computer_choice equals "paper".
  • Drag out Set Text. Assign it to result by changing the variable name before .set_text().
  • Change the string in .set_text() to "Tie Game!" since paper ties with paper.

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)