American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Python – Gamas

October 24, 2020 @ 5:00 pm - 6:00 pm

  1. We completed Password Generator program
  2. We started Hang man game
  3. Homework:
    1. Inside the while loop, check if the user input is the same with “secret_word”. If it is, break from the loop
    2. If it is not the same, check if the user input is in the “secret_word”. If it is not, then subtract”num_lives” by one. If it is, for now just print Hooray
    3. To check if a letter is inside the “secret_word”, this is an example on how to do it
      letter = "a"
      secret_word = "dragon"
      if letter in secret_word:
         print("Hooray")
      else:
         print("Wrong")
      

Details

Date:
October 24, 2020
Time:
5:00 pm - 6:00 pm
Event Categories:
,