Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Available Letters | Hints
Beginner Final Project: Hangman
course content

Зміст курсу

Beginner Final Project: Hangman

Beginner Final Project: Hangman

1. Game Word
2. Hints
3. Main Body

Available Letters

To help user we show available letters after every guess. The letter has to be deleted from the available_list if it has been used already. To do that, we create the get_available_letters function.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

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

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

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

Available Letters

To help user we show available letters after every guess. The letter has to be deleted from the available_list if it has been used already. To do that, we create the get_available_letters function.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

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

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

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

Available Letters

To help user we show available letters after every guess. The letter has to be deleted from the available_list if it has been used already. To do that, we create the get_available_letters function.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

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

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

To help user we show available letters after every guess. The letter has to be deleted from the available_list if it has been used already. To do that, we create the get_available_letters function.

Завдання

  1. Set the get_available_letters function using letters_already_guessed as an argument.
  2. Set the variable-alphabet available_list using string.ascii_lowercase to get an alphabet.
  3. Set for loop to work with elements of the available_list in the reverse order.
  4. Set condition if a letter from the available_list are equal to the letters_already_guessed.
  5. Delete an element from the available_list if it was guessed.
  6. Test the function using the test_letters_already_guessed list.

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