Kursinnehåll
Crafting a Classic Hangman Game
Crafting a Classic Hangman Game
 Random Word Generator
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.
Uppgift
Swipe to start coding
- Define the function choose_word_randomwithword_listas a parameter.
- Inside the function, return a randomly selected word from word_listusing therandom.choice(...)method.
Lösning
Mark tasks as Completed
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 2
AVAILABLE TO ULTIMATE ONLY