Score, play again, or quit?

When a player wins or uses up all of their guesses, we will use the if/elif/else logic to output a message that asks the players whether they would like to play the game again.

If player types yes, the game runs again.

If a player types no, then the scores of each player are printed and the game stops running.

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.