Browse Source

hangman game

master
Ken Schaefer 4 months ago
parent
commit
3594f929c3
  1. 13
      07-hangman/hangman.py

13
07-hangman/hangman.py

@ -0,0 +1,13 @@
# Step 1
word_list = ["aardvark", "baboon", "camel"]
#TODO-1 Randomly choose a word from the word_list and assign it to a variable
# called chosen_word
#TODO-2 Ask the user to guess a letter and assign their answer to a variable
# called guess. Make guess lowercase
#TODO-3 Check if the letter the user guessed (guess) is one of the letters in
# the chosen_word
Loading…
Cancel
Save