Зміст курсу
Beginner Final Project: Hangman
Beginner Final Project: Hangman
Random Word
To play the game it is needed to choose one gameword
randomly from the word_list
. To do that we create choose_word_random
function.
Завдання
Swipe to start coding
- Set the
choose_word_random
function using theword_list
as an argument. - Return random word from the
word_list
inside the function usingrandom.choice(...)
function. - Test the function using the
test_word_list
list.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 2
Random Word
To play the game it is needed to choose one gameword
randomly from the word_list
. To do that we create choose_word_random
function.
Завдання
Swipe to start coding
- Set the
choose_word_random
function using theword_list
as an argument. - Return random word from the
word_list
inside the function usingrandom.choice(...)
function. - Test the function using the
test_word_list
list.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 2