STEP 10: If the user guesses a letter correctly, we need to show that letter in the hidden list!
Using a value, you can find its position in a list with .index(). This will return the index position of a value.
- In LOGIC and , add Get Index of Value inside the if-block. This tells us where the letter is!
- Change my_var to letter_index, change my_list to word_list, and my_param to letter_guess.
letter_index will store the index position of the correctly-guessed letter. We will use this index in the next activity!
To navigate the page using the TAB key, first press ESC to exit the code editor.