American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Python

April 9, 2021 @ 7:00 pm - 8:00 pm

  1. We started on Hangman project.
    1. We were able to choose a random secret word.
    2. We were able to draw our health symbols using unicode.
    3. We were able to draw question marks (“?”) according to the number of letter in the secret word.
  2. Homework:
    1. Continue with your Hang Man game.
      1. Create a forever loop (while True) and inside the loop do the following:
        1. Print the questions marks
        2. Print the health symbols
        3. Ask user “Enter a letter or the entire word: “
        4. if the user input equal to the secret_word stop the loop.
    2. If you do it properly it will do like this

secret_word – griffin

[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’] ⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: a

 

[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’] ⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: b

 

[‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’, ‘?’] ⚾⚾⚾⚾⚾⚾⚾⚾⚾
Enter a letter or the entire word: griffin
Congratulation, the secret word is griffin

Details

Date:
April 9, 2021
Time:
7:00 pm - 8:00 pm
Event Categories:
,