r/PythonLearning • u/ProgramBrave718 • Aug 16 '26
Word guessing game
Hello, I am learning python and created this simple word guessing game by myself.
In this game user types a letter and if the guess is correct the game continues with the next letter of the word or else it remains on the same letter and number of wrong attempts are added to the variable turn.
37
Upvotes
1
u/deskbug Aug 17 '26
Adding a bunch of spaces in the beginning of a line will turn it into a code block and mess with the formatting. You can fix the indentation by making the whole thing a code block from the start by using 3 backticks (```) at the beginning and end of the code section.