« All Events
5:30 PM – Intro to Python – Parna
August 9, 2022 @ 5:30 pm - 6:30 pm
Today We Do
- We went over how to fix Python Errors
- Use this process:
- Click the bottom blue line
- Read the error message
- Fix the error and rerun
Homework
- Fix all the errors in this problem (CLICK LINK) : https://www.ayclogic.com/fix-python-bugs-2/
- Work on Hangman
- If user enters a letter that is not in secret_word, remove a life and display the updated number of lives each time the user is asked to enter a letter or the entire word.
- Check if the health is equal to 0 at the end and print “Sorry you lost the game, the secret word is <secret word>”
- Otherwise, print “Congratulations, the secret word is <secret_word>”
- If you did it correctly, it should be like below