Conteúdo do Curso
Crafting a Classic Hangman Game
Crafting a Classic Hangman Game
Random Word Generator
How to choose the word for the game?
To play the game, it is necessary to choose one game word randomly from the word_list
. To do that, we create the choose_word_random
function.
Tarefa
Swipe to begin your solution
- Define the function
choose_word_random
withword_list
as a parameter. - Inside the function, return a randomly selected word from
word_list
using therandom.choice(...)
method.
Solução
Mark tasks as Completed
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 2
AVAILABLE TO ULTIMATE ONLY