- We started on Hangman project.
- We were able to choose a random secret word.
- We were able to draw our health symbols using unicode.
- We were able to draw question marks (“?”) according to the number of letter in the secret word.
- Homework:
- Continue with your Hang Man game.
- Create a forever loop (while True) and inside the loop do the following:
- Print the questions marks
- Print the health symbols
- Ask user “Enter a letter or the entire word: “
- if the user input equal to the secret_word stop the loop.
- If you do it properly it will do like this
secret_word – griffin
[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’]
⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: a
[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’]
⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: b
[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’]
⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: griffin
Congratulation, the secret word is griffin