WARNING: This program has a logic error. It runs without an error message, but it doesn't do what it should!

A while loop runs as long as its condition is True. If its condition starts out as False, the loop won't run at all!

  • Click Run and look at the stage. The user should keep guessing a word until they are correct, but we can't!
  • Fix the while loop condition so that the loop repeats as long as guess is not the same as unknown_word.
  • Click Run and test the game with incorrect and correct guesses. Click Stop before submitting!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)