course content

Course Content

Hangman Game Project

Hints 2/2Hints 2/2

Note

The function we will implement doesn't work without the function from the previous step. The hints_match function has already been implemented in the code.

Show me the hint!

The second hint function is named show_possible_matches and shows the word from the file (word_from_list) if this word matches the current state of the gameword.

The task is completed!

TaskCompleted

  1. Set the show_possible_matches function using the word_to_match as an argument.
  2. Set for loop to work with the elements of the test_word_list.
  3. If the hints_match is True, append an element to the possible_matches list.
  4. Set condition if the possible_matches list is empty.
  5. Test the function using the test_word_to_match list.

Everything was clear?

Section 1. Chapter 7