Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Is the Word Guessed? | Game Word
Beginner Final Project: Hangman
course content

Зміст курсу

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

Is the Word Guessed?

The program needs to know when to stop asking the user for letters if the word is guessed. To do that we implement the is_word_guessed function, which will say 'Ok, the user has guessed the gameword. We may stop the program and congratulate the player!'

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 3
toggle bottom row

Is the Word Guessed?

The program needs to know when to stop asking the user for letters if the word is guessed. To do that we implement the is_word_guessed function, which will say 'Ok, the user has guessed the gameword. We may stop the program and congratulate the player!'

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 1. Розділ 3
toggle bottom row

Is the Word Guessed?

The program needs to know when to stop asking the user for letters if the word is guessed. To do that we implement the is_word_guessed function, which will say 'Ok, the user has guessed the gameword. We may stop the program and congratulate the player!'

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

The program needs to know when to stop asking the user for letters if the word is guessed. To do that we implement the is_word_guessed function, which will say 'Ok, the user has guessed the gameword. We may stop the program and congratulate the player!'

Завдання

  1. Set the is_word_guessed function using the gameword and the letters_already_guessed as arguments.
  2. Set condition to check if the letters_already_guessed is equal to the gameword. !
  3. Return True if the condition is satisfied and False otherwise.
  4. Test the function using the test_gameword and test_letters_already_guessed lists. ! Pay attention! while implementing 2. ... task we need to use set(gameword) & set(letters_already_guessed) structure to equal it to the gameword. We do that because we need only letters from letters_already_guessed that are in the gameword. & - returns letters that are present in both words.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 3
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt