course content

Course Content

Crafting a Classic Hangman Game

Random Word GeneratorRandom 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.

Task

  1. Define the function choose_word_random with word_list as a parameter.
  2. Inside the function, return a randomly selected word from word_list using the random.choice(...) method.

Everything was clear?

Section 1. Chapter 2