American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Intro To Python

August 1, 2020 @ 1:00 pm - 2:00 pm

  1. We continued with Hangman game:
    1. We display question mark (“?”) clue according to the number of letter in the secret_word.
    2. We decrease “lives” when user guess incorrectly.
  2. Homework:
    1. Inside the forever loop, check if “lives” variable is equal to 0, break from the loop.
    2. Outside the forever loop, in the bottom of the file, do the following
      1. Check if “lives” variable is greater than 0, then print “Congratulation you have won the game”.
      2. otherwise, print “HA HA HA, you lost the game: <secret word>”

Details

Date:
August 1, 2020
Time:
1:00 pm - 2:00 pm
Event Categories:
,