Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Random Word Generator | Hangman Game
Crafting a Classic Hangman Game

bookRandom 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.

Завдання

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.

Рішення

Mark tasks as Completed
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Awesome!

Completion rate improved to 11.11

bookRandom 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.

Завдання

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.

Рішення

Mark tasks as Completed
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 2
some-alt