From 3594f929c3fe7cefe5aa086a3598a6c4a4606455 Mon Sep 17 00:00:00 2001 From: Ken Schaefer Date: Thu, 11 Jul 2024 07:32:46 -0500 Subject: [PATCH] hangman game --- 07-hangman/hangman.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 07-hangman/hangman.py diff --git a/07-hangman/hangman.py b/07-hangman/hangman.py new file mode 100644 index 0000000..b78e300 --- /dev/null +++ b/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 +