Fix uppercasing of repeated characters

This commit is contained in:
Dendy 2022-01-31 11:32:58 +01:00
parent bd773150ab
commit 9bc1f91b0b
Signed by: dendy
GPG Key ID: 0168B35FFD7F608F
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def word(palabra):
break
while i != 5:
if guess[i] == palabra[i]:
guess = guess.replace(guess[i], guess[i].upper())
guess = guess[:i] + guess[i].upper() + guess[i+1:]
i += 1
print(guess)
hp -= 1