American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5:30 PM – Intro to Python – Parna

August 9, 2022 @ 5:30 pm - 6:30 pm

Today We Do
  1. We went over how to fix Python Errors
  2. Use this process:
    • Click the bottom blue line
    • Read the error message
    • Fix the error and rerun
Homework
  1. Fix all the errors in this problem (CLICK LINK) : https://www.ayclogic.com/fix-python-bugs-2/
  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

Details

Date:
August 9, 2022
Time:
5:30 pm - 6:30 pm
Verified by MonsterInsights