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.
Taak
Swipe to start coding
- 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.
Oplossing
Mark tasks as Completed
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 11.11
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.
Taak
Swipe to start coding
- 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.
Oplossing
Mark tasks as Completed
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 2