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.
Swipe to start coding
- Set the
show_possible_matchesfunction using theword_to_matchas an argument. - Set
forloop to work with the elements of thetest_word_list. - If the
hints_matchisTrue, append an element to thepossible_matcheslist. - Set condition if the
possible_matcheslist is empty. - Test the function using the
test_word_to_matchlist.
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 7.69
Hints 2/2
Deslize para mostrar o menu
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.
Swipe to start coding
- Set the
show_possible_matchesfunction using theword_to_matchas an argument. - Set
forloop to work with the elements of thetest_word_list. - If the
hints_matchisTrue, append an element to thepossible_matcheslist. - Set condition if the
possible_matcheslist is empty. - Test the function using the
test_word_to_matchlist.
Solução
Obrigado pelo seu feedback!
single