done ask the player if they want to play again (but only if the game is if gameisdoneif playagain()missedletters 'correctletters 'gameisdone false secretword getrandomword(wordsif the player won or lost after guessing their letterthe game should ask the player if they want to play again the playagain(function handles getting yes or no from the playerso it is called on line if the player does want to play againthe values in missedletters and correctletters must be reset to blank stringsgameisdone to falseand new secret word stored in secretword this way when the execution loops back to the beginning of the while loop on line the board will be back to fresh game elsebreak if the player did not type in something that began with "ywhen asked if they wanted to play againthen line ' condition would be false and the else-block executes the break statement causes the execution to jump to the first instruction after the loop but because there are no more instructions after the loopthe program terminates summary this has been long and you've been introduced to several new concepts but hangman has been our most advanced game yet as your games get more and more complexit'll be good idea to sketch out flow chart on paper of what happens in your program lists are values that can contain other values methods are functions specific to data type lists have append(and reverse(methods strings have lower()upper()split()startswith()and endswith(methods you'll learn about many more data types and methods in the rest of this book the for loop is loop that iterates over the items in listunlike while loop which iterates as long as condition is true the elif statement lets you add an "or else ifclause to the middle of your if-else statements the del statement can delete variables or items inside lists post questions to