STEP 9: Is the letter that the user guessed in the word? Let's find out!

The condition (if item in list) equals True if that item is found in the list and False if it is not found.

  • In LOGIC go to and drag If In so that it is indented inside the for loop.
  • Change the test value from my_var to letter_guess and the test list from my_list to word_list!
  • In GRAPHICS and , add Say for Time in the if-block so sprite says "Correct letter!"

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)