Random Word
To play the game it is needed to choose one gameword randomly from the word_list. To do that we create choose_word_random function.
Tarefa
Swipe to start coding
- Set the
choose_word_randomfunction using theword_listas an argument. - Return random word from the
word_listinside the function usingrandom.choice(...)function. - Test the function using the
test_word_listlist.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 2
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
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
Random Word
Deslize para mostrar o menu
To play the game it is needed to choose one gameword randomly from the word_list. To do that we create choose_word_random function.
Tarefa
Swipe to start coding
- Set the
choose_word_randomfunction using theword_listas an argument. - Return random word from the
word_listinside the function usingrandom.choice(...)function. - Test the function using the
test_word_listlist.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 2
single