I'm new in python. I'm trying to code a basic hangman game, the thing is, when I put on purpuse a wrong answer, my for loop keep making the iteration as if nothing happen, I'd like that each time I mistake, the loop "freeze" o keep in the same letter until I put the correct answer.
This is my code:
word = input("Introduce a word ")
n = len(word)
print("The word has "+ str(n) + " letters")
print("Hint: The first letter is " + word[0])
print("")
for i in word:
print(i)
if i == input("Guess the letter: "):
print("Correct")
else:
print("Wrong !")