American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7PM – Intro to Python

August 22, 2021 @ 7:00 pm - 8:00 pm

Today we did:

  1. Reviewed functions
  2. Started working on Hangman game

Homework:

  1. Continuously (forever loop) get user input and ask the user “Guess a letter or the whole word: ” and save the input into a variable called user_guess. If the user’s guess is equal to the secret word, break from the loop and print “Congratulations you have won the game”.
  2. Example output:
Secret word is kraken

Guess a letter or the whole word: asd 

Guess a letter or the whole word: dragon 

Guess a letter or the whole word: kraken 

Congratulation you have won the game.

If you have any questions, please send an email to latisha@ayclogic.com

Details

Date:
August 22, 2021
Time:
7:00 pm - 8:00 pm
Verified by MonsterInsights