Зміст курсу
Beginner Final Project: Hangman
Beginner Final Project: Hangman
Hints 2/2
The function we are going to implement doesn't work without the function
from the previous step. The hints_match
function has been already implemeneted in the code.
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
.
Завдання
- Set the
show_possible_matches
function using theword_to_match
as an argument. - Set
for
loop to work with the elements of thetest_word_list
. - If the
hints_match
isTrue
, append an element to thepossible_matches
list. - Set condition if the
possible_matches
list is empty. - Test the function using the
test_word_to_match
list.
Дякуємо за ваш відгук!
Hints 2/2
The function we are going to implement doesn't work without the function
from the previous step. The hints_match
function has been already implemeneted in the code.
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
.
Завдання
- Set the
show_possible_matches
function using theword_to_match
as an argument. - Set
for
loop to work with the elements of thetest_word_list
. - If the
hints_match
isTrue
, append an element to thepossible_matches
list. - Set condition if the
possible_matches
list is empty. - Test the function using the
test_word_to_match
list.
Дякуємо за ваш відгук!
Hints 2/2
The function we are going to implement doesn't work without the function
from the previous step. The hints_match
function has been already implemeneted in the code.
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
.
Завдання
- Set the
show_possible_matches
function using theword_to_match
as an argument. - Set
for
loop to work with the elements of thetest_word_list
. - If the
hints_match
isTrue
, append an element to thepossible_matches
list. - Set condition if the
possible_matches
list is empty. - Test the function using the
test_word_to_match
list.
Дякуємо за ваш відгук!
The function we are going to implement doesn't work without the function
from the previous step. The hints_match
function has been already implemeneted in the code.
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
.
Завдання
- Set the
show_possible_matches
function using theword_to_match
as an argument. - Set
for
loop to work with the elements of thetest_word_list
. - If the
hints_match
isTrue
, append an element to thepossible_matches
list. - Set condition if the
possible_matches
list is empty. - Test the function using the
test_word_to_match
list.