Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Random Word Generator | Crafting a Classic Hangman Game
Crafting a Classic Hangman Game
course content

Cursusinhoud

Crafting a Classic Hangman Game

book
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

  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.

Oplossing

Mark tasks as Completed
Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 2
AVAILABLE TO ULTIMATE ONLY
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt