Hangman simulator, Unindent Does not match any outer indentation level


#1

I'm trying to code a hangman simulator, and there is this persistent little bug in my code. Can you check this please?
Here is the code:
if gameIsDone:
if playAgain():
missedLetters=''
correctLetters''
gameIsDone=False
secretword=getRandomWord(words)
else:
break
The error is: unindent does not match any outer indentation level
It's giving me the problem at line 1. Could you guys help debug it?
Thanks.
`


#2

Please re-edit your Post

  • leave one blank-line above of your code
  • select your code in the Post
  • then =click= on the </>-symbol-of-this-editor

Your code will then be in a pre-code state
and you will be able to make/present the proper indentations.

or even better use
= http://discuss.codecademy.com/t/using-backticks-to-format-your-code/3697/2
[extra's]
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet