Open bonaventureogeto opened 8 months ago
Hi Bon,
Kindly help me to understand how to track and display current state of the word e,g .," A _ ". I have problem to identify the function to use to update the letter to the correct position/index.
You need to initialize two key variables at the start of your game:
When the player makes a guess inside your game loop, check if the guessed letter is in the secret_word. If it is, you need to update display_word at the correct indices. You'll need a function you can use to update display_word.
You'll then need to display the current state of display_word to the player after each guess (correct or incorrect). This involves converting display_word back into a string for easy reading.
I hope this points you in the right direction but if you need more help, don't hesitate to book a 1 on 1 session with me.
Happy hacking!
Hi Bon, The code has been updated. Kindly review
Hi Jackson,
Great submission. You have demonstrated a good understanding of basic Python concepts such as lists, loops, conditional statements, and importing from a module.
Some growth areas:
Great work. Keep it up and happy coding!