STEP 9: First we'll make it so that the loop ends if the dragon has revealed all of the letters in the word. We'll do that by testing if the length of revealed_letters is equal to the length of word.

len() is how we get the length of a string in Python.

  • Go to and drag out Length. Change the name of the variable to revealed_length.
  • Change the variable parameter in len() to revealed_letters.


# THIS ACTIVITY IS IN PREVIEW ONLY MODE