American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

6 PM – Python OOP – Shawn

August 11, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Reviewed homework
    1. Did 9-7 on page 173 in the textbook
  2. Started first half of the Hangman project
Homework
  1. Continue with Hangman hangman.py and finish the entire program:
    1. In application loop, have the following logic after the user input:
      1. If user input is equal to the secret word, break
      2. Else if user input is not a letter in the secret word, subtract one to the lives
      3. Otherwise, update your clues accordingly (replace the ? with the letter you correctly guess!)
    2. If you run out of lives, break out of the loop
    3. If you win (if there aren’t any question marks left in your clues), also break out of the loop
    4. Print out a message either saying that you won or lost

If you have any questions, feel free to email me at szhuang@ayclogic.com.

Details

Date:
August 11, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights