- This event has passed.
SUN – 3 PM – Intro To Python
September 27, 2020 @ 3:00 pm - 4:00 pm
- We continued with the Hangman Game project.
- We added a feature to replace the question mark from “clue” list with a letter that the user guesses correctly.
- Homework:
- In our hangman game, right now when all letters have been guessed correctly, the game did not stop. Try to stop the game when there is no more question mark in the “clue” variable. To do this try the following code and see if you can figure out what to do
-
if "?" not in clue: print("Hooray")
-
- Review what we did last class how to go through each letter inside a word using for loop.
- In our hangman game, right now when all letters have been guessed correctly, the game did not stop. Try to stop the game when there is no more question mark in the “clue” variable. To do this try the following code and see if you can figure out what to do