Skip to content
Hangman (not printing guessed letters)-python
Profile icon
Fire-Wizard

I have been trying to make a hangman game, Everything works fine except that it does not give the previous guessed letters in the correct places like the suppose the answer was "spoon" & you guessed the s first time you do it it will print in the proper place then you guess p the next one will look like

![image]
image

how do I bring it from that to:

image

You are viewing a single comment. View All
Profile icon
Fire-Wizard

@Axrevyn
I get the idea, but won't that work only with only one type of length for example:
letters = ["","","",""]
print(letters[0], letters[1], letters[2], letters[3])
↑ the above code type will only work with four letter words not with words with other lengths
I will try it to make it more flexible but if possible
give me a more flexible idea